-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathsettings.html
51 lines (41 loc) · 1.65 KB
/
settings.html
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<div class="container">
<div class="row">
<div class="col-sm-12">
<h1>Change Password</h1>
</div>
<div class="col-sm-12">
<form class="form" name="form" (ngSubmit)="changePassword()" novalidate>
<div class="form-group">
<label>Current Password</label>
<input type="password" name="password" class="form-control" [(ngModel)]="user.oldPassword" mongoose-error/>
<p class="help-block" [hidden]="!form.password.$error.mongoose">
{{ errors.other }}
</p>
</div>
<div class="form-group">
<label>New Password</label>
<input type="password" name="newPassword" class="form-control" [(ngModel)]="user.newPassword"
ng-minlength="3"
required/>
<p class="help-block"
[hidden]="!(form.newPassword.$error.minlength || form.newPassword.$error.required) || !(form.newPassword.$dirty || submitted)">
Password must be at least 3 characters.
</p>
</div>
<div class="form-group">
<label>Confirm New Password</label>
<input type="password" name="confirmPassword" class="form-control" [(ngModel)]="user.confirmPassword"
match="user.newPassword"
ng-minlength="3"
required=""/>
<p class="help-block"
[hidden]="!form.confirmPassword.$error.match || !submitted">
Passwords must match.
</p>
</div>
<p class="help-block"> {{ message }} </p>
<button class="btn btn-lg btn-primary" type="submit">Save changes</button>
</form>
</div>
</div>
</div>