]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/login/login.component.html
Add ability to login with email
[github/Chocobozzz/PeerTube.git] / client / src / app / login / login.component.html
1 <div class="margin-content">
2 <div class="title-page title-page-single">
3 Login
4 </div>
5
6 <div *ngIf="error" class="alert alert-danger">{{ error }}</div>
7
8 <form role="form" (ngSubmit)="login()" [formGroup]="form">
9 <div class="form-group">
10 <label for="username">Username or email address</label>
11 <input
12 type="text" id="username" placeholder="Username or email address" required
13 formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }"
14 >
15 <div *ngIf="formErrors.username" class="form-error">
16 {{ formErrors.username }}
17 </div>
18 </div>
19
20 <div class="form-group">
21 <label for="password">Password</label>
22 <input
23 type="password" name="password" id="password" placeholder="Password" required
24 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
25 >
26 <div *ngIf="formErrors.password" class="form-error">
27 {{ formErrors.password }}
28 </div>
29 </div>
30
31 <input type="submit" value="Login" [disabled]="!form.valid">
32 </form>
33 </div>