refactor: align ui and backend password validation policy
This commit is contained in:
committed by
Jose Alberto Hernandez
parent
2b730bb1ea
commit
0762dfbac2
+3
-3
@@ -70,7 +70,7 @@
|
||||
{{ 'labels.inputs.Password' | translate }} <strong>{{'labels.commons.is required' | translate }}</strong>
|
||||
</mat-error>
|
||||
<mat-error *ngIf="createSelfServiceForm.controls.password.hasError('minlength')">
|
||||
{{'labels.commons.Password should be at least' | translate }} <strong>{{'labels.commons.8 characters long' | translate }}</strong>
|
||||
{{'labels.commons.Password should be at least' | translate }} <strong>{{'labels.commons.12 characters long' | translate }}</strong>
|
||||
</mat-error>
|
||||
<mat-error *ngIf="createSelfServiceForm.controls.password.hasError('maxlength')">
|
||||
{{'labels.commons.Password should not be more than' | translate }}
|
||||
@@ -79,7 +79,7 @@
|
||||
<mat-error
|
||||
*ngIf="createSelfServiceForm.controls.password.hasError('pattern') && !(createSelfServiceForm.controls.password.hasError('minlength') || createSelfServiceForm.controls.password.hasError('maxlength'))">
|
||||
{{'labels.commons.Password should include a' | translate }}
|
||||
<strong>{{'labels.commons.numeral' | translate }}</strong> {{'labels.commons.and at' | translate }}
|
||||
<strong>{{'labels.commons.numeral' | translate }}</strong> {{'labels.commons.and at' | translate }}
|
||||
<strong>{{'labels.commons.least one uppercase' | translate }}</strong>
|
||||
,<strong>{{'labels.commons.lowercase and special character' | translate }}</strong>
|
||||
</mat-error>
|
||||
@@ -120,4 +120,4 @@
|
||||
|
||||
</mat-card>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user