mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 06:45:05 +01:00
Chore: include password validation on user edit (#11308)
This commit is contained in:
parent
808c074f48
commit
2a9d1fce0d
5 changed files with 93 additions and 19 deletions
|
|
@ -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
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue