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 44-50
Link Here
|
44 |
</div> |
61 |
</div> |
45 |
[% END %] |
62 |
[% END %] |
46 |
</div> |
63 |
</div> |
47 |
<div class="span10 maincontent"> |
64 |
<div class="span10"> |
48 |
<h3>Forgotten password recovery</h3> |
65 |
<h3>Forgotten password recovery</h3> |
49 |
[% IF (hasError) %] |
66 |
[% IF (hasError) %] |
50 |
<div class="alert alert-warning"> |
67 |
<div class="alert alert-warning"> |
Lines 92-98
Link Here
|
92 |
<form action="/cgi-bin/koha/opac-password-recovery.pl" method="post" autocomplete="off"> |
109 |
<form action="/cgi-bin/koha/opac-password-recovery.pl" method="post" autocomplete="off"> |
93 |
<input type="hidden" name="koha_login_context" value="opac" /> |
110 |
<input type="hidden" name="koha_login_context" value="opac" /> |
94 |
<fieldset> |
111 |
<fieldset> |
95 |
<p>To reset your password, enter your login or your email address.</p> |
112 |
<p>To reset your password, enter your login or your email address. |
96 |
<label for="username">Login:</label> |
113 |
<label for="username">Login:</label> |
97 |
<input type="text" id="username" size="40" name="username" value="[% username | html %]" /> |
114 |
<input type="text" id="username" size="40" name="username" value="[% username | html %]" /> |
98 |
<label for="email">Email:</label> |
115 |
<label for="email">Email:</label> |
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') ) %] |
111 |
- |
|
|