From ecfa86a8fb1fb9838efb18c4b2c0e17b9221c6e6 Mon Sep 17 00:00:00 2001 From: Lukas Kimpel <lukas.kimpel@mni.thm.de> Date: Thu, 8 Mar 2018 13:36:14 +0100 Subject: [PATCH] Add error message for invalid email --- src/app/password-reset/password-reset.component.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/password-reset/password-reset.component.html b/src/app/password-reset/password-reset.component.html index 6d87689fb..2e3a6328d 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> -- GitLab