aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html
blob: 913b570cb697def13726f0994c238c1d64e39caf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div *ngIf="error" class="alert alert-danger">{{ error }}</div>

<form role="form" (ngSubmit)="changePassword()" [formGroup]="form">

  <label i18n for="new-password">Change password</label>
  <input
    type="password" id="new-password" i18n-placeholder placeholder="New password"
    formControlName="new-password" [ngClass]="{ 'input-error': formErrors['new-password'] }"
    (change)="validateNewPassword()"  (blur)="printAnError()"
  >
  <div *ngIf="formErrors['new-password']" class="form-error">
    {{ formErrors['new-password'] }}
  </div>

  <input
    type="password" id="new-confirmed-password" i18n-placeholder placeholder="Confirm new password"
    formControlName="new-confirmed-password" (change)="validateNewPassword()" (blur)="printAnError()"
  >

  <input type="submit" i18n-value value="Change password" [disabled]="!form.valid || unsendable">
</form>