diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-24 15:27:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-24 15:27:15 +0200 |
commit | d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d (patch) | |
tree | fa29fcfd704cbc56c7bc3e3e1c15d84ea0f4dc61 /client/src/app/+login | |
parent | 25ea1d85e155382367d11036617848fe69a1e6a4 (diff) | |
download | PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.tar.gz PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.tar.zst PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.zip |
Fix lint
Diffstat (limited to 'client/src/app/+login')
-rw-r--r-- | client/src/app/+login/login.component.html | 6 | ||||
-rw-r--r-- | client/src/app/+login/login.component.ts | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/client/src/app/+login/login.component.html b/client/src/app/+login/login.component.html index 40049390e..8ccc73617 100644 --- a/client/src/app/+login/login.component.html +++ b/client/src/app/+login/login.component.html | |||
@@ -81,10 +81,12 @@ | |||
81 | <input type="submit" class="peertube-button orange-button w-100" i18n-value value="Login" [disabled]="!form.valid"> | 81 | <input type="submit" class="peertube-button orange-button w-100" i18n-value value="Login" [disabled]="!form.valid"> |
82 | 82 | ||
83 | <div *ngIf="!otpStep" class="additional-links d-flex justify-content-center mt-4 mb-5"> | 83 | <div *ngIf="!otpStep" class="additional-links d-flex justify-content-center mt-4 mb-5"> |
84 | <a i18n role="button" class="link-orange mx-3" (click)="openForgotPasswordModal()" i18n-title title="Click here to reset your password">I forgot my password</a> | 84 | <button i18n class="button-unstyle link-orange mx-3" (click)="openForgotPasswordModal()" i18n-title title="Click here to reset your password"> |
85 | I forgot my password | ||
86 | </button> | ||
85 | 87 | ||
86 | <ng-container *ngIf="signupAllowed"> | 88 | <ng-container *ngIf="signupAllowed"> |
87 | <span>·</span> | 89 | <span class="lh-1">·</span> |
88 | <a i18n routerLink="/signup" class="link-orange mx-3">Create an account</a> | 90 | <a i18n routerLink="/signup" class="link-orange mx-3">Create an account</a> |
89 | </ng-container> | 91 | </ng-container> |
90 | </div> | 92 | </div> |
diff --git a/client/src/app/+login/login.component.ts b/client/src/app/+login/login.component.ts index ba0d412d6..1e224db8c 100644 --- a/client/src/app/+login/login.component.ts +++ b/client/src/app/+login/login.component.ts | |||
@@ -85,8 +85,8 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni | |||
85 | 85 | ||
86 | // Avoid undefined errors when accessing form error properties | 86 | // Avoid undefined errors when accessing form error properties |
87 | this.buildForm({ | 87 | this.buildForm({ |
88 | username: LOGIN_USERNAME_VALIDATOR, | 88 | 'username': LOGIN_USERNAME_VALIDATOR, |
89 | password: LOGIN_PASSWORD_VALIDATOR, | 89 | 'password': LOGIN_PASSWORD_VALIDATOR, |
90 | 'otp-token': { | 90 | 'otp-token': { |
91 | VALIDATORS: [], // Will be set dynamically | 91 | VALIDATORS: [], // Will be set dynamically |
92 | MESSAGES: USER_OTP_TOKEN_VALIDATOR.MESSAGES | 92 | MESSAGES: USER_OTP_TOKEN_VALIDATOR.MESSAGES |