Browse Source
Merge pull request #6842 from vvlladd28/bug/change-password/current-password-not-required
[3.4] UI: Fix change password current password not required
pull/6886/head
Igor Kulikov
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
ui-ngx/src/app/modules/home/pages/security/security.component.html
|
|
|
@ -38,9 +38,9 @@ |
|
|
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutGap="25px" fxLayoutGap.xs="0"> |
|
|
|
<div fxFlex="290px" fxFlex.sm="250px" fxFlex.xs="100"> |
|
|
|
<h3 class="card-title" translate>profile.change-password</h3> |
|
|
|
<mat-form-field class="mat-block same-color" hideRequiredMarker appearance="fill" color="primary"> |
|
|
|
<mat-form-field class="mat-block same-color" appearance="fill" color="primary"> |
|
|
|
<mat-label translate>profile.current-password</mat-label> |
|
|
|
<input matInput type="password" name="current-password" formControlName="currentPassword" autocomplete="current-password" required/> |
|
|
|
<input matInput type="password" name="current-password" formControlName="currentPassword" autocomplete="current-password"/> |
|
|
|
<tb-toggle-password [fxShow]="changePassword.get('currentPassword').dirty || changePassword.get('currentPassword').touched" matSuffix></tb-toggle-password> |
|
|
|
<mat-error *ngIf="changePassword.get('currentPassword').hasError('differencePassword')"> |
|
|
|
{{ 'security.password-requirement.incorrect-password-try-again' | translate }} |
|
|
|
|