From 26257b1fb4711064affef47fdc4e015dbb5456d4 Mon Sep 17 00:00:00 2001
From: Joze RIHTARSIC <joze.RIHTARSIC@ext.ec.europa.eu>
Date: Wed, 8 Jun 2022 10:30:51 +0200
Subject: [PATCH] Fix show error in Password set/change dialog

---
 .../password-change-dialog.component.html                     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/smp-angular/src/app/common/dialogs/password-change-dialog/password-change-dialog.component.html b/smp-angular/src/app/common/dialogs/password-change-dialog/password-change-dialog.component.html
index 14e31cac0..46e7ab1e3 100644
--- a/smp-angular/src/app/common/dialogs/password-change-dialog/password-change-dialog.component.html
+++ b/smp-angular/src/app/common/dialogs/password-change-dialog/password-change-dialog.component.html
@@ -35,7 +35,7 @@
           <mat-icon matSuffix
                     (click)="hideNewPwdFiled = !hideNewPwdFiled">{{hideNewPwdFiled ? 'visibility_off' : 'visibility'}}</mat-icon>
           <mat-error *ngIf="passwordError('new-password', 'required')">New password is required</mat-error>
-          <mat-error *ngIf="passwordError('new-password', 'equal')">New password must not be equal than old current
+          <mat-error *ngIf="passwordError('new-password', 'error')">New password must not be equal than old current
             password!
           </mat-error>
           <mat-error *ngIf="passwordError('new-password', 'pattern')">{{passwordValidationMessage}}</mat-error>
@@ -46,7 +46,7 @@
                  formControlName="confirm-new-password" required id="cnp_id">
           <mat-icon matSuffix
                     (click)="hideConfPwdFiled = !hideConfPwdFiled">{{hideConfPwdFiled ? 'visibility_off' : 'visibility'}}</mat-icon>
-          <mat-error *ngIf="passwordError('confirm-new-password', 'equal')">Confirm valued does not match new password!
+          <mat-error *ngIf="passwordError('confirm-new-password', 'error')">Confirm valued does not match new password!
           </mat-error>
           <mat-error *ngIf="passwordError('confirm-new-password', 'required')">Confirm New password is required
           </mat-error>
-- 
GitLab