IMPORTANT!
This forum is now archived. Click here for the New Support Forum
Pro - Password change broken
Quote from Jonathon Wyza on February 3, 2018, 8:52 pmIt appears the password change functionality for the current user is broken. It doesn't prompt you for the current password in the UI, but the API requires it.
It appears the password change functionality for the current user is broken. It doesn't prompt you for the current password in the UI, but the API requires it.
Quote from Eben Monney on February 4, 2018, 5:01 pmI was able to reproduce this. The fix will be included in the next update.
In the mean time you can do the following to apply the fix in your project:
1. Add the following lines to "user-editor.component.ts"
get isEditingSelf() { return this.accountService.currentUser ? this.user.id == this.accountService.currentUser.id : false; }2. From the file "user-editor.component.html", replace the below line:
<mat-form-field [floatLabel]="floatLabels" formGroupName="password" *ngIf="isEditMode && !isNewUser && userName.value != user.userName" fxFlex>with this:
<mat-form-field [floatLabel]="floatLabels" formGroupName="password" *ngIf="(isEditMode && !isNewUser && userName.value != user.userName) || (isChangePassword && isEditingSelf)" fxFlex>Thanks for reporting this.
I was able to reproduce this. The fix will be included in the next update.
In the mean time you can do the following to apply the fix in your project:
1. Add the following lines to "user-editor.component.ts"
get isEditingSelf() { return this.accountService.currentUser ? this.user.id == this.accountService.currentUser.id : false; }
2. From the file "user-editor.component.html", replace the below line:
<mat-form-field [floatLabel]="floatLabels" formGroupName="password" *ngIf="isEditMode && !isNewUser && userName.value != user.userName" fxFlex>
with this:
<mat-form-field [floatLabel]="floatLabels" formGroupName="password" *ngIf="(isEditMode && !isNewUser && userName.value != user.userName) || (isChangePassword && isEditingSelf)" fxFlex>
Thanks for reporting this.
IMPORTANT!
This forum is now archived. Click here for the New Support Forum