4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Change your password</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% BLOCK cssinclude %][% END %]
9 [% INCLUDE 'bodytag.inc' bodyid='opac-passwd' %]
10 [% INCLUDE 'masthead.inc' %]
13 <ul class="breadcrumb">
14 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
15 <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">›</span></li>
16 <li><a href="#">Change your password</a></li>
19 <div class="container-fluid">
20 <div class="row-fluid">
23 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
28 <h3>Change your password </h3>
30 [% IF ( Error_messages ) %]
32 <h3>There was a problem with your submission</h3>
34 [% IF ( passwords_mismatch ) %]
35 Passwords do not match. Please re-type your new password.
37 [% IF password_too_short %]
38 Password must be at least [% minPasswordLength | html %] characters long.
40 [% IF password_too_weak %]
41 Password must contain at least one digit, one lowercase and one uppercase.
43 [% IF password_has_whitespaces %]
44 Password must not contain leading or trailing whitespaces.
47 [% IF ( WrongPass ) %]
48 Your current password was entered incorrectly. If this problem persists, please ask a librarian to reset your password for you.
52 [% END # /IF Error_messages %]
54 [% IF logged_in_user.category.effective_change_password %]
58 <form action="/cgi-bin/koha/opac-passwd.pl" name="mainform" id="mainform" method="post" autocomplete="off">
60 [% IF ( Koha.Preference('RequireStrongPassword') ) %]
61 <div class="alert alert-info">Your password must contain at least [% Koha.Preference('minPasswordLength') | html %] characters, including UPPERCASE, lowercase and numbers.</div>
63 <div class="alert alert-info">Your password must be at least [% Koha.Preference('minPasswordLength') | html %] characters long.</div>
65 <label for="Oldkey">Current password:</label> <input type="password" id="Oldkey" size="25" name="Oldkey" />
66 <label for="Newkey">New password:</label> <input type="password" id="Newkey" size="25" name="Newkey" />
67 <label for="Confirm">Re-type new password:</label> <input type="password" id="Confirm" size="25" name="Confirm" />
69 <fieldset class="action"><input type="submit" value="Change password" class="btn" /> <a href="/cgi-bin/koha/opac-user.pl" class="cancel">Cancel</a></fieldset>
71 [% END # /IF Ask_data %]
73 <div class="alert">You can't change your password.</div>
74 [% END # /IF logged_in_user.category.effective_change_password %]
76 [% IF ( password_updated ) %]
77 <div class="alert alert-success">
78 <h1>Password updated</h1>
79 Your password has been changed
81 <form action="/cgi-bin/koha/opac-user.pl" method="post" autocomplete="off">
82 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
83 <p><input type="submit" class="btn" value="Return to my account" /></p>
85 [% END # /IF password_updated %]
86 </div> <!-- / #userpasswd -->
87 </div> <!-- / .span10 -->
88 </div> <!-- / .row-fluid -->
89 </div> <!-- / .container-fluid -->
90 </div> <!-- / .main -->
94 [% INCLUDE 'opac-bottom.inc' %]
96 [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
97 [% PROCESS 'password_check.inc' %]
98 [% PROCESS 'add_password_check' new_password => 'Newkey' %]
100 $(document).ready(function() {
101 $("#mainform").validate({
105 password_strong: true,
106 password_no_spaces: true