4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Change your password › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% BLOCK cssinclude %][% END %]
9 [% INCLUDE 'bodytag.inc' bodyid='opac-passwd' %]
10 [% INCLUDE 'masthead.inc' %]
13 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
14 <ol class="breadcrumb">
15 <li class="breadcrumb-item">
16 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
18 <li class="breadcrumb-item">
19 <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
21 <li class="breadcrumb-item active">
22 <a href="#" aria-current="page">Change your password</a>
25 </nav> <!-- /#breadcrumbs -->
27 <div class="container-fluid">
29 <div class="col-lg-2">
31 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
34 <div class="col-10 order-first order-lg-2">
35 <div id="userpasswd" class="maincontent">
36 <h1>Change your password </h1>
38 [% IF ( Error_messages ) %]
39 <div class="alert alert-warning">
40 <h2>There was a problem with your submission</h2>
42 [% IF ( passwords_mismatch ) %]
43 Passwords do not match. Please re-type your new password.
45 [% IF password_too_short %]
46 Password must be at least [% minPasswordLength | html %] characters long.
48 [% IF password_too_weak %]
49 Password must contain at least one digit, one lowercase and one uppercase.
51 [% IF password_has_whitespaces %]
52 Password must not contain leading or trailing whitespaces.
55 [% IF ( WrongPass ) %]
56 Your current password was entered incorrectly. If this problem persists, please ask a librarian to reset your password for you.
60 [% END # /IF Error_messages %]
62 [% IF logged_in_user.category.effective_change_password %]
64 <form action="/cgi-bin/koha/opac-passwd.pl" name="mainform" id="mainform" method="post" autocomplete="off">
65 <legend class="sr-only">Change your password</legend>
67 [% IF ( logged_in_user.category.effective_require_strong_password ) %]
68 <div class="alert alert-info">Your password must contain at least [% logged_in_user.category.effective_min_password_length | html %] characters, including UPPERCASE, lowercase and numbers.</div>
70 <div class="alert alert-info">Your password must be at least [% logged_in_user.category.effective_min_password_length | html %] characters long.</div>
72 <div class="form-group">
73 <label for="Oldkey">Current password:</label>
74 <input class="form-control focus" type="password" id="Oldkey" size="25" name="Oldkey" />
76 <div class="form-group">
77 <label for="Newkey">New password:</label>
78 <input class="form-control" type="password" id="Newkey" size="25" name="Newkey" />
80 <div class="form-group">
81 <label for="Confirm">Re-type new password:</label>
82 <input class="form-control" type="password" id="Confirm" size="25" name="Confirm" />
85 <fieldset class="action">
86 <input type="submit" value="Change password" class="btn btn-primary" />
87 <a href="/cgi-bin/koha/opac-user.pl" class="cancel">Cancel</a>
90 [% END # /IF Ask_data %]
92 <div class="alert alert-warning">You can't change your password.</div>
93 [% END # /IF logged_in_user.category.effective_change_password %]
95 [% IF ( password_updated ) %]
96 <div class="alert alert-info">
97 <strong>Password updated</strong>
99 Your password has been changed
101 <form action="/cgi-bin/koha/opac-user.pl" method="post" autocomplete="off">
102 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
103 <p><input type="submit" class="btn btn-primary" value="Return to my account" /></p>
105 [% END # /IF password_updated %]
106 </div> <!-- / #userpasswd -->
107 </div> <!-- / .col-10 -->
108 </div> <!-- / .row -->
109 </div> <!-- / .container-fluid -->
110 </div> <!-- / .main -->
114 [% INCLUDE 'opac-bottom.inc' %]
115 [% BLOCK jsinclude %]
116 [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
117 [% PROCESS 'password_check.inc' new_password => 'Newkey', minPasswordLength => logged_in_user.category.effective_min_password_length, RequireStrongPassword => logged_in_user.category.effective_require_strong_password %]
119 $(document).ready(function() {
120 $("#mainform").validate({
124 password_strong: true,
125 password_no_spaces: true