1 [% PROCESS "opac/parts/header.tt2";
2 PROCESS "opac/parts/config.tt2";
3 WRAPPER "opac/parts/base.tt2";
4 INCLUDE "opac/parts/topnav.tt2";
5 ctx.page_title = l('Library system password reset request form');
7 <div id="search-wrapper">
8 [% INCLUDE "opac/parts/printnav.tt2" %]
9 [% INCLUDE "opac/parts/searchbar.tt2" %]
13 uuid = ctx.page_args.0;
15 SUCCESS => l('Password has been reset'),
16 NO_MATCH => l('Passwords did not match. Please try again'),
17 NOT_ACTIVE => l('This was not an active password reset request. Your password has not been reset.'),
18 NOT_STRONG => l('The password you chose was not considered complex enough to protect your account. Your password has not been reset.'),
19 TWO_PASSWORDS => l('Please enter and repeat your new password.'),
20 REQUEST_SUCCESS => l('Your user name or barcode has been submitted for a password reset. ' _
21 'If a matching account with an email address is found, you will soon receive an email at that address with further instructions for resetting your password.')
24 <div id="content-wrapper">
25 <div id="main-content">
27 <p class='[% ctx.pwreset.style %]'>[% stat = ctx.pwreset.status; msg_map.$stat %]</p>
29 [% IF stat == 'SUCCESS' %]
30 <p><a href='[% mkurl(ctx.opac_root _ '/login', {}, 1) %]'>[% l('Log in to My Account') %]</a>
33 <input type='hidden' name='uuid' value='[% uuid | html %]'/>
36 <td><label for="pwd1">[% l('New password:') %]</label></td>
37 <td><input type="password" name="pwd1"/></td>
40 <td><label for="pwd2">[% l('Re-enter new password:') %]</label></td>
41 <td><input type="password" name="pwd2"/></td>
45 <button name="submit" id="submitButton" type="submit">[% l('Submit') %]</button>
51 [% ELSIF !ctx.pwreset.status %]
52 <h2>[% l('Please enter your user name or barcode to identify your library account and request a password reset') %]</h2>
56 <td><label for="barcode">[% l('Barcode:') %] </label></td>
57 <td><input type="text" id="barcode" name="barcode"/></td>
60 <td><label for="username">[% l('User name:') %] </label></td>
61 <td><input type="text" id="username" name="username"/></td>
64 <!--<label for="email">[% l('Email address associated with the account:') %] </label><input type="text" name="email"/></br>-->
65 <button name="submit" id="submitButton" type="submit">[% l('Submit') %]</button>