Fix errors and warnings on login/logout
parent
a813028f88
commit
735f1e465b
@ -1,4 +1,4 @@
|
|||||||
<div routerLink = "/profile" >
|
<div routerLink = "/profile" class="sidenav-profile">
|
||||||
<img class="navbar-photo" src={{profileURL}}>
|
<img class="navbar-photo" src={{profileURL}}>
|
||||||
<p>{{name}}</p>
|
<p>{{name}}</p>
|
||||||
<p>{{email}}</p>
|
<p>{{email}}</p>
|
||||||
|
@ -1,41 +1,46 @@
|
|||||||
<div id="login-form">
|
<div id="login-wrapper">
|
||||||
<h1>fLotte Login</h1>
|
<h1>fLotte Login</h1>
|
||||||
<mat-form-field (keyup.enter)="login()">
|
<form id="login-form">
|
||||||
<mat-label>E-Mail-Adresse eingeben</mat-label>
|
<mat-form-field (keyup.enter)="login()">
|
||||||
<input matInput placeholder="fLotte@beispiel.de" [formControl]="email" />
|
<mat-label>E-Mail-Adresse eingeben</mat-label>
|
||||||
<mat-error *ngIf="email.hasError('required')">
|
<input matInput placeholder="fLotte@beispiel.de" autocomplete="email" [formControl]="email" />
|
||||||
Bitte geben Sie eine E-Mail-Adresse ein.
|
<mat-error *ngIf="email.hasError('required')">
|
||||||
</mat-error>
|
Bitte geben Sie eine E-Mail-Adresse ein.
|
||||||
<mat-error *ngIf="email.hasError('email')">
|
</mat-error>
|
||||||
Bitte geben Sie eine valide E-Mail-Adresse ein.
|
<mat-error *ngIf="email.hasError('email')">
|
||||||
</mat-error>
|
Bitte geben Sie eine valide E-Mail-Adresse ein.
|
||||||
</mat-form-field>
|
</mat-error>
|
||||||
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field (keyup.enter)="login()">
|
<mat-form-field (keyup.enter)="login()">
|
||||||
<mat-label>Passwort eingeben</mat-label>
|
<mat-label>Passwort eingeben</mat-label>
|
||||||
<input
|
<input
|
||||||
matInput
|
matInput
|
||||||
[type]="hide ? 'password' : 'text'"
|
autocomplete="password"
|
||||||
[formControl]="password"
|
[type]="hide ? 'password' : 'text'"
|
||||||
/>
|
[formControl]="password"
|
||||||
<mat-error *ngIf="password.hasError('required')">
|
/>
|
||||||
Bitte geben Sie Ihr Passwort ein.
|
<mat-error *ngIf="password.hasError('required')">
|
||||||
</mat-error>
|
Bitte geben Sie Ihr Passwort ein.
|
||||||
<button
|
</mat-error>
|
||||||
mat-icon-button
|
<button
|
||||||
matSuffix
|
mat-icon-button
|
||||||
(click)="hide = !hide"
|
matSuffix
|
||||||
[attr.aria-label]="'Hide password'"
|
(click)="hide = !hide"
|
||||||
[attr.aria-pressed]="hide"
|
[attr.aria-label]="'Hide password'"
|
||||||
>
|
[attr.aria-pressed]="hide"
|
||||||
<mat-icon>{{ hide ? "visibility_off" : "visibility" }}</mat-icon>
|
>
|
||||||
</button>
|
<mat-icon>{{ hide ? "visibility_off" : "visibility" }}</mat-icon>
|
||||||
</mat-form-field>
|
</button>
|
||||||
<mat-progress-bar mode="indeterminate" id="loading-bar" *ngIf="loading"></mat-progress-bar>
|
</mat-form-field>
|
||||||
<button mat-stroked-button color="primary" (click)="login()">
|
</form>
|
||||||
Login
|
<mat-progress-bar
|
||||||
</button>
|
mode="indeterminate"
|
||||||
|
id="loading-bar"
|
||||||
|
*ngIf="loading"
|
||||||
|
></mat-progress-bar>
|
||||||
|
<button mat-stroked-button color="primary" (click)="login()">Login</button>
|
||||||
<mat-error class="login-error-message" *ngIf="errorOccurred">
|
<mat-error class="login-error-message" *ngIf="errorOccurred">
|
||||||
{{errorMessage}}
|
{{ errorMessage }}
|
||||||
</mat-error>
|
</mat-error>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue