diff --git a/src/app/password-reset/password-reset.component.html b/src/app/password-reset/password-reset.component.html index 6d87689fb1cd904d6b788ba3fecfb45f698c5752..2e3a6328d141327a3402151f7a1471c46bd01f4b 100644 --- a/src/app/password-reset/password-reset.component.html +++ b/src/app/password-reset/password-reset.component.html @@ -4,6 +4,7 @@ <input matInput #email placeholder="E-Mail" [formControl]="usernameFormControl" [errorStateMatcher]="matcher" name="email"/> <mat-error *ngIf="usernameFormControl.hasError('required')">Email address is <strong>required</strong>.</mat-error> + <mat-error *ngIf="usernameFormControl.hasError('email') && !usernameFormControl.hasError('required')">Email is not <strong>valid</strong>.</mat-error> </mat-form-field> <button mat-raised-button color="primary" (click)="resetPassword(email.value)">Reset password</button>