aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account.component.html
blob: 5a8847acda812bf45b0970197ba72bf86451da70 (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
27
<h3>Account</h3>

<div *ngIf="information" class="alert alert-success">{{ information }}</div>
<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>