feat: add self service password component (#670)

Fixes: #669
This commit is contained in:
Benura Abeywardena
2020-05-17 01:07:12 +05:30
committed by GitHub
parent eb56bdc0ad
commit c8928e24bc
5 changed files with 48 additions and 11 deletions
@@ -18,15 +18,11 @@
<mat-error *ngIf="changePasswordForm.controls.password.hasError('maxlength')">
Password should not be more than <strong>50 characters long</strong>
</mat-error>
<mat-error *ngIf="changePasswordForm.controls.password.hasError('pattern')">
<mat-error *ngIf="changePasswordForm.controls.password.hasError('pattern') && !(changePasswordForm.controls.password.hasError('minlength') || changePasswordForm.controls.password.hasError('maxlength'))">
Password should include a <strong>numeral</strong> and at <strong>least one uppercase</strong> ,<strong>lowercase and special character</strong>
</mat-error>
</mat-form-field>
</div>
<div fxLayout="column">
<mat-form-field>
<mat-label>Repeat Password</mat-label>
<input matInput formControlName="repeatPassword" type="password">