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 |
[% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %] |
9 |
[% PROCESS 'password_check.inc' %] |
10 |
[% PROCESS 'add_password_check' new_password => 'password' %] |
8 |
<script> |
11 |
<script> |
9 |
$(function() { |
12 |
$(function() { |
10 |
$("#CheckAll").click(function(){ |
13 |
$("#CheckAll").click(function(){ |
Lines 21-26
Link Here
|
21 |
$("fieldset#serial, fieldset#book, fieldset#chapter").hide() |
24 |
$("fieldset#serial, fieldset#book, fieldset#chapter").hide() |
22 |
$("fieldset#" + $(this).val() ).show(); |
25 |
$("fieldset#" + $(this).val() ).show(); |
23 |
}); |
26 |
}); |
|
|
27 |
|
28 |
$("#mainform").validate({ |
29 |
rules: { |
30 |
password: { |
31 |
required: true, |
32 |
password_strong: true, |
33 |
password_no_spaces: true |
34 |
}, |
35 |
repeatPassword: { |
36 |
required: true, |
37 |
password_match: true |
38 |
} |
39 |
} |
40 |
}); |
24 |
}); |
41 |
}); |
25 |
</script> |
42 |
</script> |
26 |
[% END %] |
43 |
[% END %] |
Lines 104-110
Link Here
|
104 |
</form> |
121 |
</form> |
105 |
[% ELSIF (new_password) %] |
122 |
[% ELSIF (new_password) %] |
106 |
[% UNLESS ( errLinkNotValid ) %] |
123 |
[% UNLESS ( errLinkNotValid ) %] |
107 |
<form action="/cgi-bin/koha/opac-password-recovery.pl" method="post" autocomplete="off"> |
124 |
<form id="mainform" name="mainform" action="/cgi-bin/koha/opac-password-recovery.pl" method="post" autocomplete="off"> |
108 |
<input type="hidden" name="koha_login_context" value="opac" /> |
125 |
<input type="hidden" name="koha_login_context" value="opac" /> |
109 |
<fieldset> |
126 |
<fieldset> |
110 |
[% IF ( Koha.Preference('RequireStrongPassword') ) %] |
127 |
[% IF ( Koha.Preference('RequireStrongPassword') ) %] |
Lines 145-169
Link Here
|
145 |
</div><!-- / .container-fluid --> |
162 |
</div><!-- / .container-fluid --> |
146 |
</div><!-- / .main --> |
163 |
</div><!-- / .main --> |
147 |
[% INCLUDE 'opac-bottom.inc' %] |
164 |
[% INCLUDE 'opac-bottom.inc' %] |
148 |
[% BLOCK jsinclude %] |
|
|
149 |
[% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %] |
150 |
[% PROCESS 'password_check.inc' %] |
151 |
[% PROCESS 'add_password_check' new_password => 'password' %] |
152 |
<script> |
153 |
$(document).ready(function() { |
154 |
$("#mainform").validate({ |
155 |
rules: { |
156 |
password: { |
157 |
required: true, |
158 |
password_strong: true, |
159 |
password_no_spaces: true |
160 |
}, |
161 |
repeatPassword: { |
162 |
required: true, |
163 |
password_match: true |
164 |
} |
165 |
} |
166 |
}); |
167 |
}); |
168 |
</script> |
169 |
[% END %] |
170 |
- |