summaryrefslogtreecommitdiff
path: root/ui/lib/apiServer.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/lib/apiServer.js')
-rw-r--r--ui/lib/apiServer.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/lib/apiServer.js b/ui/lib/apiServer.js
index db554e2..19dcf60 100644
--- a/ui/lib/apiServer.js
+++ b/ui/lib/apiServer.js
@@ -30,6 +30,10 @@ export async function logOut() {
return apiServer.post('/auth/logout', {});
}
+export async function changePassword(password, to) {
+ return apiServer.post('/password', { password, to });
+}
+
export async function createChannel(name) {
return apiServer.post('/channels', { name });
}