aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/UserApi.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/UserApi.ts')
-rw-r--r--src/api/UserApi.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/UserApi.ts b/src/api/UserApi.ts
index 2b319207a..9364b3383 100644
--- a/src/api/UserApi.ts
+++ b/src/api/UserApi.ts
@@ -38,6 +38,10 @@ export default class UserApi {
38 return this.server.userInfo(); 38 return this.server.userInfo();
39 } 39 }
40 40
41 requestNewToken() {
42 return this.server.requestNewToken();
43 }
44
41 updateInfo(data: { oldPassword: string; newPassword: string }) { 45 updateInfo(data: { oldPassword: string; newPassword: string }) {
42 const userData = data; 46 const userData = data;
43 if (userData.oldPassword && userData.newPassword) { 47 if (userData.oldPassword && userData.newPassword) {