]>
Commit | Line | Data |
---|---|---|
c30745f3 C |
1 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
2 | ||
3 | <form role="form" (ngSubmit)="changePassword()" [formGroup]="form"> | |
d235f6b0 C |
4 | |
5 | <label for="new-password">Change password</label> | |
c30745f3 | 6 | <input |
a2b817d3 C |
7 | type="password" id="new-password" placeholder="New password" |
8 | formControlName="new-password" [ngClass]="{ 'input-error': formErrors['new-password'] }" | |
c30745f3 | 9 | > |
a2b817d3 | 10 | <div *ngIf="formErrors['new-password']" class="form-error"> |
c30745f3 C |
11 | {{ formErrors['new-password'] }} |
12 | </div> | |
13 | ||
14 | <input | |
a2b817d3 | 15 | type="password" id="new-confirmed-password" placeholder="Confirm new password" |
c30745f3 C |
16 | formControlName="new-confirmed-password" |
17 | > | |
18 | ||
19 | <input type="submit" value="Change password" [disabled]="!form.valid"> | |
20 | </form> |