diff options
Diffstat (limited to 'client/src/app/account/account.component.html')
-rw-r--r-- | client/src/app/account/account.component.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/account/account.component.html b/client/src/app/account/account.component.html index ad8f690bd..4797fa914 100644 --- a/client/src/app/account/account.component.html +++ b/client/src/app/account/account.component.html | |||
@@ -3,14 +3,14 @@ | |||
3 | <div *ngIf="information" class="alert alert-success">{{ information }}</div> | 3 | <div *ngIf="information" class="alert alert-success">{{ information }}</div> |
4 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> | 4 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
5 | 5 | ||
6 | <form role="form" (ngSubmit)="changePassword(newPassword.value, newConfirmedPassword.value)" [ngFormModel]="changePasswordForm"> | 6 | <form role="form" (ngSubmit)="changePassword()" [formGroup]="changePasswordForm"> |
7 | <div class="form-group"> | 7 | <div class="form-group"> |
8 | <label for="new-password">New password</label> | 8 | <label for="new-password">New password</label> |
9 | <input | 9 | <input |
10 | type="password" class="form-control" name="new-password" id="new-password" | 10 | type="password" class="form-control" name="new-password" id="new-password" |
11 | ngControl="newPassword" #newPassword="ngForm" | 11 | [(ngModel)]="newPassword" #newPasswordInput="ngModel" |
12 | > | 12 | > |
13 | <div [hidden]="newPassword.valid || newPassword.pristine" class="alert alert-warning"> | 13 | <div [hidden]="changePasswordForm.controls['new-password'].valid || changePasswordForm.controls['new-password'].pristine" class="alert alert-warning"> |
14 | The password should have more than 5 characters | 14 | The password should have more than 5 characters |
15 | </div> | 15 | </div> |
16 | </div> | 16 | </div> |
@@ -19,7 +19,7 @@ | |||
19 | <label for="name">Confirm new password</label> | 19 | <label for="name">Confirm new password</label> |
20 | <input | 20 | <input |
21 | type="password" class="form-control" name="new-confirmed-password" id="new-confirmed-password" | 21 | type="password" class="form-control" name="new-confirmed-password" id="new-confirmed-password" |
22 | ngControl="newConfirmedPassword" #newConfirmedPassword="ngForm" | 22 | [(ngModel)]="newConfirmedPassword" #newConfirmedPasswordInput="ngModel" |
23 | > | 23 | > |
24 | </div> | 24 | </div> |
25 | 25 | ||