1 <div class=
"margin-content">
2 <div i18n
class=
"title-page title-page-single">
6 <div *
ngIf=
"error" class=
"alert alert-danger">{{ error }}
7 <span *
ngIf=
"error === 'User email is not verified.'"> <a i18n
routerLink=
"/verify-account/ask-send-email">Request new verification email.
</a></span>
10 <form role=
"form" (ngSubmit)=
"login()" [formGroup]=
"form">
11 <div class=
"form-group">
13 <label i18n
for=
"username">User
</label>
15 type=
"text" id=
"username" i18n-placeholder
placeholder=
"Username or email address" required
tabindex=
"1"
16 formControlName=
"username" [ngClass]=
"{ 'input-error': formErrors['username'] }" #emailInput
18 <a i18n *
ngIf=
"signupAllowed === true" routerLink=
"/signup" class=
"create-an-account">
22 <a i18n *
ngIf=
"signupAllowed === false" href=
"https://joinpeertube.org/en/#register" target=
"_blank" title=
"Click here to see a list of instances where to register" class=
"create-an-account">
23 or create an account on another instance
27 *
ngIf=
"signupAllowed === false" helpType=
"custom" i18n-customHtml
28 customHtml=
"User registration is not allowed on this instance, but you can register on many others!"
32 <div *
ngIf=
"formErrors.username" class=
"form-error">
33 {{ formErrors.username }}
37 <div class=
"form-group">
38 <label i18n
for=
"password">Password
</label>
41 type=
"password" name=
"password" id=
"password" i18n-placeholder
placeholder=
"Password" required
tabindex=
"2"
42 formControlName=
"password" [ngClass]=
"{ 'input-error': formErrors['password'] }"
44 <a i18n
class=
"forgot-password-button" (click)=
"openForgotPasswordModal()" title=
"Click here to reset your password">I forgot my password
</a>
46 <div *
ngIf=
"formErrors.password" class=
"form-error">
47 {{ formErrors.password }}
51 <input type=
"submit" value=
"Login" [disabled]=
"!form.valid">
55 <ng-template #forgotPasswordModal
>
56 <div class=
"modal-header">
57 <h4 i18n
class=
"modal-title">Forgot your password
</h4>
58 <span class=
"close" aria-hidden=
"true" (click)=
"hideForgotPasswordModal()"></span>
61 <div class=
"modal-body">
62 <div class=
"form-group">
63 <label i18n
for=
"forgot-password-email">Email
</label>
65 type=
"email" id=
"forgot-password-email" i18n-placeholder
placeholder=
"Email address" required
66 [(ngModel)]=
"forgotPasswordEmail" #forgotPasswordEmailInput
71 <div class=
"modal-footer inputs">
72 <span i18n
class=
"action-button action-button-cancel" (click)=
"hideForgotPasswordModal()">Cancel
</span>
75 type=
"submit" i18n-value
value=
"Send me an email to reset my password" class=
"action-button-submit"
76 (click)=
"askResetPassword()" [disabled]=
"!forgotPasswordEmailInput.validity.valid"