mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Fix password change detection on profile edit (#5028)
This commit is contained in:
		| @@ -11,7 +11,6 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms' | ||||
| import { | ||||
|   NgbAccordionModule, | ||||
|   NgbActiveModal, | ||||
|   NgbModal, | ||||
|   NgbModalModule, | ||||
| } from '@ng-bootstrap/ng-bootstrap' | ||||
| import { HttpClientModule } from '@angular/common/http' | ||||
|   | ||||
| @@ -130,7 +130,8 @@ export class ProfileEditDialogComponent implements OnInit, OnDestroy { | ||||
|   } | ||||
|  | ||||
|   save(): void { | ||||
|     const passwordChanged = this.currentPassword !== this.newPassword | ||||
|     const passwordChanged = | ||||
|       this.newPassword && this.currentPassword !== this.newPassword | ||||
|     const profile = Object.assign({}, this.form.value) | ||||
|     this.networkActive = true | ||||
|     this.profileService | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon