diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-05 14:59:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-05 15:00:25 +0200 |
commit | b0ee41df7d6de2f77d30e7bb47c245c0b33019d4 (patch) | |
tree | eafdc2bc0a8facd7a3b779d3998eb696f0177473 /client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html | |
parent | 4c8e4e04d1b3f0f207e9155df393ceeb23dc2172 (diff) | |
download | PeerTube-b0ee41df7d6de2f77d30e7bb47c245c0b33019d4.tar.gz PeerTube-b0ee41df7d6de2f77d30e7bb47c245c0b33019d4.tar.zst PeerTube-b0ee41df7d6de2f77d30e7bb47c245c0b33019d4.zip |
Clean up change password validation
Diffstat (limited to 'client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html')
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html index 913b570cb..ab6df52be 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html | |||
@@ -6,7 +6,6 @@ | |||
6 | <input | 6 | <input |
7 | type="password" id="new-password" i18n-placeholder placeholder="New password" | 7 | type="password" id="new-password" i18n-placeholder placeholder="New password" |
8 | formControlName="new-password" [ngClass]="{ 'input-error': formErrors['new-password'] }" | 8 | formControlName="new-password" [ngClass]="{ 'input-error': formErrors['new-password'] }" |
9 | (change)="validateNewPassword()" (blur)="printAnError()" | ||
10 | > | 9 | > |
11 | <div *ngIf="formErrors['new-password']" class="form-error"> | 10 | <div *ngIf="formErrors['new-password']" class="form-error"> |
12 | {{ formErrors['new-password'] }} | 11 | {{ formErrors['new-password'] }} |
@@ -14,8 +13,11 @@ | |||
14 | 13 | ||
15 | <input | 14 | <input |
16 | type="password" id="new-confirmed-password" i18n-placeholder placeholder="Confirm new password" | 15 | type="password" id="new-confirmed-password" i18n-placeholder placeholder="Confirm new password" |
17 | formControlName="new-confirmed-password" (change)="validateNewPassword()" (blur)="printAnError()" | 16 | formControlName="new-confirmed-password" |
18 | > | 17 | > |
18 | <div *ngIf="formErrors['new-confirmed-password']" class="form-error"> | ||
19 | {{ formErrors['new-confirmed-password'] }} | ||
20 | </div> | ||
19 | 21 | ||
20 | <input type="submit" i18n-value value="Change password" [disabled]="!form.valid || unsendable"> | 22 | <input type="submit" i18n-value value="Change password" [disabled]="!form.valid"> |
21 | </form> | 23 | </form> |