2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Change your password</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
7 [% INCLUDE 'bodytag.inc' bodyid='opac-passwd' %]
8 [% INCLUDE 'masthead.inc' %]
11 <ul class="breadcrumb">
12 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
13 <li><a href="/cgi-bin/koha/opac-user.pl">[% firstname %] [% surname %]</a> <span class="divider">›</span></li>
14 <li><a href="#">Change your password</a></li>
17 <div class="container-fluid">
18 <div class="row-fluid">
21 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
26 <h3>Change your password </h3>
28 [% IF ( Error_messages ) %]
30 <h3>There was a problem with your submission</h3>
32 [% IF ( passwords_mismatch ) %]
33 Passwords do not match. Please re-type your new password.
35 [% IF password_too_short %]
36 Password must be at least [% minPasswordLength %] characters long.
38 [% IF password_too_weak %]
39 Password must contain at least one digit, one lowercase and one uppercase.
41 [% IF password_has_whitespaces %]
42 Password must not contain leading or trailing whitespaces.
45 [% IF ( WrongPass ) %]
46 Your current password was entered incorrectly. If this problem persists, please ask a librarian to reset your password for you.
50 [% END # /IF Error_messages %]
52 [% IF ( OpacPasswordChange ) %]
55 <form action="/cgi-bin/koha/opac-passwd.pl" name="mainform" id="mainform" method="post" autocomplete="off">
57 [% UNLESS ( ShortPass ) %]<div class="alert alert-info">Your password must be at least [% minPasswordLength%] characters long.</div>[% END %]
58 <label for="Oldkey">Current password:</label> <input type="password" id="Oldkey" size="25" name="Oldkey" />
59 <label for="Newkey">New password:</label> <input type="password" id="Newkey" size="25" name="Newkey" />
60 <label for="Confirm">Re-type new password:</label> <input type="password" id="Confirm" size="25" name="Confirm" />
62 <fieldset class="action"><input type="submit" value="Submit changes" class="btn" /> <a href="/cgi-bin/koha/opac-user.pl" class="cancel">Cancel</a></fieldset>
64 [% END # /IF Ask_data %]
66 <div class="alert">You can't change your password.</div>
67 [% END # /IF OpacPasswordChange %]
69 [% IF ( password_updated ) %]
70 <div class="alert alert-success">
71 <h1>Password updated</h1>
72 Your password has been changed
74 <form action="/cgi-bin/koha/opac-user.pl" method="post" autocomplete="off">
75 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
76 <p><input type="submit" class="btn" value="Return to your record" /></p>
78 [% END # /IF password_updated %]
79 </div> <!-- / #userpasswd -->
80 </div> <!-- / .span10 -->
81 </div> <!-- / .row-fluid -->
82 </div> <!-- / .container-fluid -->
83 </div> <!-- / .main -->
87 [% INCLUDE 'opac-bottom.inc' %]
89 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.validate.min_[% KOHA_VERSION %].js"></script>
90 [% PROCESS 'password_check.inc' %]
91 [% PROCESS 'add_password_check' new_password => 'Newkey' %]
92 <script type="text/javascript">
93 $(document).ready(function() {
94 $("#mainform").validate({
98 password_strong: true,
99 password_no_spaces: true