fix: Change password dialog password validation issue
This commit is contained in:
@@ -5,7 +5,18 @@
|
||||
<div fxLayout="column">
|
||||
<mat-form-field>
|
||||
<mat-label>{{ 'labels.inputs.Password' | translate }}</mat-label>
|
||||
<input matInput formControlName="password" type="password" />
|
||||
<input matInput formControlName="password" type="{{ passwordInputType[0] }}" />
|
||||
<button
|
||||
type="button"
|
||||
mat-button
|
||||
matSuffix
|
||||
mat-icon-button
|
||||
(mousedown)="togglePasswordVisibility(0)"
|
||||
(mouseup)="togglePasswordVisibility(0)"
|
||||
>
|
||||
<fa-icon *ngIf="passwordInputType[0] === 'password'" icon="eye"></fa-icon>
|
||||
<fa-icon *ngIf="passwordInputType[0] === 'text'" icon="eye-slash"></fa-icon>
|
||||
</button>
|
||||
<mat-error *ngIf="changePasswordForm.controls.password.hasError('required')">
|
||||
{{ 'labels.inputs.Password' | translate }} <strong>{{ 'labels.commons.is required' | translate }}</strong>
|
||||
</mat-error>
|
||||
@@ -36,7 +47,18 @@
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>{{ 'labels.inputs.Repeat Password' | translate }}</mat-label>
|
||||
<input matInput formControlName="repeatPassword" type="password" />
|
||||
<input matInput formControlName="repeatPassword" type="{{ passwordInputType[1] }}" />
|
||||
<button
|
||||
type="button"
|
||||
mat-button
|
||||
matSuffix
|
||||
mat-icon-button
|
||||
(mousedown)="togglePasswordVisibility(1)"
|
||||
(mouseup)="togglePasswordVisibility(1)"
|
||||
>
|
||||
<fa-icon *ngIf="passwordInputType[1] === 'password'" icon="eye"></fa-icon>
|
||||
<fa-icon *ngIf="passwordInputType[1] === 'text'" icon="eye-slash"></fa-icon>
|
||||
</button>
|
||||
<mat-error *ngIf="changePasswordForm.controls.repeatPassword.hasError('required')">
|
||||
{{ 'labels.inputs.Password' | translate }} <strong>{{ 'labels.commons.required' | translate }}</strong>
|
||||
</mat-error>
|
||||
|
||||
Reference in New Issue
Block a user