aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account.component.html
blob: 2fbb5a90882171b5a7f825981feca32aa8b66c80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<h3>Account</h3>

<div *ngIf="error" class="alert alert-danger">{{ error }}</div>

<form role="form" (ngSubmit)="changePassword()" [formGroup]="form">
  <div class="form-group">
    <label for="new-password">New password</label>
    <input
      type="password" class="form-control" id="new-password"
      formControlName="new-password"
    >
    <div *ngIf="formErrors['new-password']" class="alert alert-danger">
      {{ formErrors['new-password'] }}
    </div>
  </div>

  <div class="form-group">
    <label for="name">Confirm new password</label>
    <input
      type="password" class="form-control" id="new-confirmed-password"
      formControlName="new-confirmed-password"
    >
  </div>

  <input type="submit" value="Change password" class="btn btn-default" [disabled]="!form.valid">
</form>