Skip to content

Commit

Permalink
fix: match tooltip to actual validation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyOplachko committed Jun 28, 2024
1 parent ec68fac commit 04e15e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
{{ password?.errors?.['maxlength']?.requiredLength }} {{'validators.maxChars' | translate }}
</mat-error>
<mat-error *ngIf="password?.errors?.['missingCharacters'] && !password?.errors?.['maxlength'] && !password?.errors?.['minlength'] && !password?.errors?.['required']">
{{'validators.pattern' | translate }} [aA-Zz], [0-9] and "~!@#$%^&*()_"]
{{'validators.pattern' | translate }} [aA-zZ] and [0-9]
</mat-error>
<mat-icon matSuffix
style="cursor: pointer"
Expand Down Expand Up @@ -117,7 +117,7 @@
{{ password2?.errors?.['maxlength']?.requiredLength }} {{'validators.maxChars' | translate }}
</mat-error>
<mat-error *ngIf="password2?.errors?.['missingCharacters'] && !password2?.errors?.['maxlength'] && !password2?.errors?.['minlength'] && !password?.errors?.['required']">
{{'validators.pattern' | translate }} [aA-Zz], [0-9] and "~!@#$%^&*()_"]
{{'validators.pattern' | translate }} [aA-zZ] and [0-9]
</mat-error>
</mat-form-field>
</div>
Expand Down

0 comments on commit 04e15e9

Please sign in to comment.