-
Notifications
You must be signed in to change notification settings - Fork 7
/
reset.finish.html
84 lines (77 loc) · 5.67 KB
/
reset.finish.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<section class="auth-modal">
<div class="auth-content">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2">
<div class="auth-box">
<div class="auth-box-cabecera">
<i class="icon-register"></i>
<span class="ng-scope">Reset password</span>
</div>
<div class="auth-box-content">
<div class="alert alert-danger" ng-show="keyMissing">
<strong>The password reset key is missing.</strong>
</div>
<div class="alert alert-warning" ng-hide="success || keyMissing">
<p>Choose a new password</p>
</div>
<div class="alert alert-danger" ng-show="error">
<p>Your password couldn't be reset. Remember a password request is only valid for 24 hours.</p>
</div>
<div class="alert alert-success" ng-show="success">
<p><strong>Your password has been reset.</strong> Please <a href="#/login">authenticate</a>.</p>
</div>
<div class="alert alert-danger" ng-show="doNotMatch">
The password and its confirmation do not match!
</div>
<div ng-hide="keyMissing">
<form ng-show="!success" name="form" role="form" novalidate ng-submit="finishReset()" show-validation>
<div class="form-group">
<label translate="global.form.newpassword">New password</label>
<input type="password" class="form-control" name="password" placeholder="{{'global.form.newpassword.placeholder' | translate}}"
ng-model="resetAccount.password" ng-minlength=5 ng-maxlength=50 required>
<div ng-show="form.password.$dirty && form.password.$invalid">
<p class="help-block"
ng-show="form.password.$error.required" translate="global.messages.validate.newpassword.required">
Your password is required.
</p>
<p class="help-block"
ng-show="form.password.$error.minlength" translate="global.messages.validate.newpassword.minlength">
Your password is required to be at least 5 characters.
</p>
<p class="help-block"
ng-show="form.password.$error.maxlength" translate="global.messages.validate.newpassword.maxlength">
Your password cannot be longer than 50 characters.
</p>
</div>
<password-strength-bar password-to-check="resetAccount.password"></password-strength-bar>
</div>
<div class="form-group">
<label translate="global.form.confirmpassword">New password confirmation</label>
<input type="password" class="form-control" name="confirmPassword" placeholder="{{'global.form.confirmpassword.placeholder' | translate}}"
ng-model="confirmPassword" ng-minlength=5 ng-maxlength=50 required>
<div ng-show="form.confirmPassword.$dirty && form.confirmPassword.$invalid">
<p class="help-block"
ng-show="form.confirmPassword.$error.required" translate="global.messages.validate.confirmpassword.required">
Your password confirmation is required.
</p>
<p class="help-block"
ng-show="form.confirmPassword.$error.minlength" translate="global.messages.validate.confirmpassword.minlength">
Your password confirmation is required to be at least 5 characters.
</p>
<p class="help-block"
ng-show="form.confirmPassword.$error.maxlength" translate="global.messages.validate.confirmpassword.maxlength">
Your password confirmation cannot be longer than 50 characters.
</p>
</div>
</div>
<button type="submit" ng-disabled="form.$invalid" class="btn btn-primary">Reset Password</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>