diff options
Diffstat (limited to 'static/api/profile.js')
| -rw-r--r-- | static/api/profile.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/static/api/profile.js b/static/api/profile.js index ec633e0..d6acd16 100644 --- a/static/api/profile.js +++ b/static/api/profile.js @@ -6,3 +6,10 @@ export async function set(name, birthday) { birthday: birthday, }); } + +export function update_password(old, next) { + return rest.post('/api/profile/update-password', { + current_password: old, + new_password: next, + }).then(r => r.success); +} |