diff --git a/src/app/components/home/_dialogs/password-reset/password-reset.component.html b/src/app/components/home/_dialogs/password-reset/password-reset.component.html index 3f6f8c1216da114190472cb06307f75347fbf867..e91e73009c7b12d9e39eb911f383a2a680a8a0c0 100644 --- a/src/app/components/home/_dialogs/password-reset/password-reset.component.html +++ b/src/app/components/home/_dialogs/password-reset/password-reset.component.html @@ -1,7 +1,7 @@ <form (ngSubmit)="resetPassword(email.value)" fxLayout="column" fxLayoutAlign="space-around" fxLayoutGap="10px"> <mat-form-field class="input-block"> - <input matInput #email placeholder="{{ 'password-reset.email' | translate }}" [formControl]="usernameFormControl" + <input matInput type="email" #email placeholder="{{ 'password-reset.email' | translate }}" [formControl]="usernameFormControl" [errorStateMatcher]="matcher" name="email"/> <mat-error *ngIf="usernameFormControl.hasError('required')"> {{ 'password-reset.email-required' | translate }} diff --git a/src/app/components/home/_dialogs/register/register.component.html b/src/app/components/home/_dialogs/register/register.component.html index 4bab2f8cc0a1092ac4f05bbffa1758185bd13402..16dfb46949628a31cd73459cc6c70f01a0a0cc9b 100644 --- a/src/app/components/home/_dialogs/register/register.component.html +++ b/src/app/components/home/_dialogs/register/register.component.html @@ -1,7 +1,7 @@ <form (ngSubmit)="register(userName.value, userPassword1.value)" fxLayout="column" fxLayoutAlign="space-around" fxLayoutGap="10px"> <mat-form-field class="input-block"> - <input matInput #userName placeholder="{{ 'register.email' | translate }}" [formControl]="usernameFormControl" + <input matInput type="email" #userName placeholder="{{ 'register.email' | translate }}" [formControl]="usernameFormControl" [errorStateMatcher]="matcher"> <mat-error *ngIf="usernameFormControl.hasError('email') && !usernameFormControl.hasError('required')"> {{ 'register.email-invalid' | translate }} @@ -12,7 +12,7 @@ </mat-form-field> <mat-form-field class="input-block"> - <input matInput #userName2 placeholder="{{ 'register.email-verify' | translate }}" [formControl]="username2FormControl" + <input matInput type="email" #userName2 placeholder="{{ 'register.email-verify' | translate }}" [formControl]="username2FormControl" [errorStateMatcher]="matcher"> <mat-error *ngIf="username2FormControl.hasError('emailIsEqual') && !username2FormControl.hasError('required')"> {{ 'register.email-unmatch' | translate }}