Fix password change detection on profile edit (#5028)

This commit is contained in:
shamoon 2023-12-17 13:36:17 -08:00 committed by GitHub
parent 5010cc6f15
commit 6ee2d023d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

@ -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