Lines 5-10
Link Here
|
5 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% BLOCK cssinclude %][% END %] |
6 |
[% BLOCK cssinclude %][% END %] |
7 |
[% BLOCK jsinclude %] |
7 |
[% BLOCK jsinclude %] |
|
|
8 |
[% IF (new_password) %] |
9 |
[% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %] |
10 |
[% PROCESS 'password_check.inc' new_password => 'newPassword', minPasswordLength => minPasswordLength, RequireStrongPassword => RequireStrongPassword %] |
11 |
[% END %] |
8 |
<script> |
12 |
<script> |
9 |
$(function() { |
13 |
$(function() { |
10 |
$("#CheckAll").click(function(){ |
14 |
$("#CheckAll").click(function(){ |
Lines 21-26
Link Here
|
21 |
$("fieldset#serial, fieldset#book, fieldset#chapter").hide() |
25 |
$("fieldset#serial, fieldset#book, fieldset#chapter").hide() |
22 |
$("fieldset#" + $(this).val() ).show(); |
26 |
$("fieldset#" + $(this).val() ).show(); |
23 |
}); |
27 |
}); |
|
|
28 |
[% IF (new_password) %] |
29 |
$("#mainform").validate({ |
30 |
rules: { |
31 |
newPassword: { |
32 |
required: true, |
33 |
password_strong: true, |
34 |
password_no_spaces: true |
35 |
}, |
36 |
repeatPassword: { |
37 |
required: true, |
38 |
password_match: true |
39 |
} |
40 |
} |
41 |
}); |
42 |
[% END %] |
24 |
}); |
43 |
}); |
25 |
</script> |
44 |
</script> |
26 |
[% END %] |
45 |
[% END %] |
Lines 116-122
Link Here
|
116 |
</form> |
135 |
</form> |
117 |
[% ELSIF (new_password) %] |
136 |
[% ELSIF (new_password) %] |
118 |
[% UNLESS ( errLinkNotValid ) %] |
137 |
[% UNLESS ( errLinkNotValid ) %] |
119 |
<form action="/cgi-bin/koha/opac-password-recovery.pl" method="post" autocomplete="off"> |
138 |
<form id="mainform" name="mainform" action="/cgi-bin/koha/opac-password-recovery.pl" method="post" autocomplete="off"> |
120 |
<input type="hidden" name="koha_login_context" value="opac" /> |
139 |
<input type="hidden" name="koha_login_context" value="opac" /> |
121 |
<fieldset class="brief"> |
140 |
<fieldset class="brief"> |
122 |
[% IF ( RequireStrongPassword ) %] |
141 |
[% IF ( RequireStrongPassword ) %] |
Lines 125-132
Link Here
|
125 |
<div class="alert alert-info">Your password must be at least [% minPasswordLength | html %] characters long.</div> |
144 |
<div class="alert alert-info">Your password must be at least [% minPasswordLength | html %] characters long.</div> |
126 |
[% END %] |
145 |
[% END %] |
127 |
<div class="form-group"> |
146 |
<div class="form-group"> |
128 |
<label for="password">New password:</label> |
147 |
<label for="newPassword">New password:</label> |
129 |
<input class="form-control" type="password" id="password" size="40" name="password" /> |
148 |
<input class="form-control" type="password" id="newPassword" size="40" name="newPassword" /> |
130 |
</div> |
149 |
</div> |
131 |
|
150 |
|
132 |
<div class="form-group"> |
151 |
<div class="form-group"> |