add new landing page firstlogin close #18

This commit is contained in:
Adrian Zürcher
2025-12-10 14:05:37 +01:00
parent 714ca0219a
commit 6be85e86af
14 changed files with 119 additions and 20 deletions

View File

@@ -227,16 +227,12 @@ function openPwdDialog(user: User) {
//change password api request
async function changePassword(user: User) {
console.log(8, user);
if (user.password == user.newPassword) {
NotifyResponse(i18n.global.t('samePasswordEntered'), 'error');
return;
}
await appApi
.post('/users/new/password', user)
.then((resp) => console.log(67, resp))
.catch((err) => console.error(err));
await appApi.post('/users/new/password', user).catch((err) => console.error(err));
changePwdDialog.value.close();
}