mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Fix password change detection on profile edit (#5028)
This commit is contained in:
parent
5010cc6f15
commit
6ee2d023d5
2 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,6 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||||
import {
|
import {
|
||||||
NgbAccordionModule,
|
NgbAccordionModule,
|
||||||
NgbActiveModal,
|
NgbActiveModal,
|
||||||
NgbModal,
|
|
||||||
NgbModalModule,
|
NgbModalModule,
|
||||||
} from '@ng-bootstrap/ng-bootstrap'
|
} from '@ng-bootstrap/ng-bootstrap'
|
||||||
import { HttpClientModule } from '@angular/common/http'
|
import { HttpClientModule } from '@angular/common/http'
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,8 @@ export class ProfileEditDialogComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
save(): void {
|
save(): void {
|
||||||
const passwordChanged = this.currentPassword !== this.newPassword
|
const passwordChanged =
|
||||||
|
this.newPassword && this.currentPassword !== this.newPassword
|
||||||
const profile = Object.assign({}, this.form.value)
|
const profile = Object.assign({}, this.form.value)
|
||||||
this.networkActive = true
|
this.networkActive = true
|
||||||
this.profileService
|
this.profileService
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue