Skip to content
Snippets Groups Projects
Verified Commit ecfa86a8 authored by Lukas Maximilian Kimpel's avatar Lukas Maximilian Kimpel
Browse files

Add error message for invalid email

parent 3ab62ff9
No related merge requests found
......@@ -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>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment