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 ( OpacPasswordChange ) %]
57 <form action="/cgi-bin/koha/opac-passwd.pl" name="mainform" id="mainform" method="post" autocomplete="off">
59 [% UNLESS ( ShortPass ) %]<div class="alert alert-info">Your password must be at least [% minPasswordLength | html %] characters long.</div>[% END %]
60 <label for="Oldkey">Current password:</label> <input type="password" id="Oldkey" size="25" name="Oldkey" />
61 <label for="Newkey">New password:</label> <input type="password" id="Newkey" size="25" name="Newkey" />
62 <label for="Confirm">Re-type new password:</label> <input type="password" id="Confirm" size="25" name="Confirm" />
64 <fieldset class="action"><input type="submit" value="Submit changes" class="btn" /> <a href="/cgi-bin/koha/opac-user.pl" class="cancel">Cancel</a></fieldset>
66 [% END # /IF Ask_data %]
68 <div class="alert">You can't change your password.</div>
69 [% END # /IF OpacPasswordChange %]
71 [% IF ( password_updated ) %]
72 <div class="alert alert-success">
73 <h1>Password updated</h1>
74 Your password has been changed
76 <form action="/cgi-bin/koha/opac-user.pl" method="post" autocomplete="off">
77 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
78 <p><input type="submit" class="btn" value="Return to your record" /></p>
80 [% END # /IF password_updated %]
81 </div> <!-- / #userpasswd -->
82 </div> <!-- / .span10 -->
83 </div> <!-- / .row-fluid -->
84 </div> <!-- / .container-fluid -->
85 </div> <!-- / .main -->
89 [% INCLUDE 'opac-bottom.inc' %]
91 [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
92 [% PROCESS 'password_check.inc' %]
93 [% PROCESS 'add_password_check' new_password => 'Newkey' %]
95 $(document).ready(function() {
96 $("#mainform").validate({
100 password_strong: true,
101 password_no_spaces: true