Chore: include password validation on user edit (#11308)

This commit is contained in:
shamoon
2025-11-07 11:20:27 -08:00
committed by GitHub
parent 808c074f48
commit 2a9d1fce0d
5 changed files with 93 additions and 19 deletions

View File

@@ -183,6 +183,7 @@ export class ProfileEditDialogComponent
this.newPassword && this.currentPassword !== this.newPassword
const profile = Object.assign({}, this.form.value)
delete profile.totp_code
this.error = null
this.networkActive = true
this.profileService
.update(profile)
@@ -204,6 +205,7 @@ export class ProfileEditDialogComponent
},
error: (error) => {
this.toastService.showError($localize`Error saving profile`, error)
this.error = error?.error
this.networkActive = false
},
})