mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 00:57:09 +01:00
Force logout on change own password
This commit is contained in:
parent
41a3f039b5
commit
c332eea354
3 changed files with 69 additions and 42 deletions
|
|
@ -18,6 +18,7 @@ export class UserEditDialogComponent
|
|||
implements OnInit
|
||||
{
|
||||
groups: PaperlessGroup[]
|
||||
passwordIsSet: boolean = false
|
||||
|
||||
constructor(
|
||||
service: UserService,
|
||||
|
|
@ -76,4 +77,11 @@ export class UserEditDialogComponent
|
|||
(id) => this.groups.find((g) => g.id == id)?.permissions
|
||||
)
|
||||
}
|
||||
|
||||
save(): void {
|
||||
this.passwordIsSet =
|
||||
this.objectForm.get('password').value?.toString().replaceAll('*', '')
|
||||
.length > 0
|
||||
super.save()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue