From 4b6e37397d3a9a80db0c20484b712175c7b9c9c7 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 24 Nov 2025 15:55:20 +0100 Subject: add password-dialog --- static/api/profile.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'static/api') 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); +} -- cgit v1.2.3-70-g09d2