1 [% IF ctx.login_failed_event %]
2 <div id='login-failed-message'>
4 IF ctx.login_failed_event.textcode == 'PATRON_CARD_INACTIVE';
5 l("The barcode used to login is marked as inactive. Please contact your local library.");
6 ELSIF ctx.login_failed_event.textcode == 'PATRON_INACTIVE';
7 l("This account has been deactivated. Please contact your local library.");
9 l("Login failed. The username or password provided was not valid. " _
10 "Passwords are case-sensitive. Check your Caps-Lock key and try again or contact your local library.");
16 <div id='login-form-box' class='login_boxes left_brain float-left'>
17 <h1>[% l('Log in to Your Account') %]</h1>
18 [% l('Please enter the following information:') %]
20 <div class='login-form-left'>
21 <label for='username_field' class="lbl1" >[% l('Library Card Number or Username') %]</label>
22 <div class="input_bg">
23 <input type='text' id="username_field" name="username" autofocus />
25 [% INCLUDE "opac/parts/login/username_hint.tt2" %]
27 <div class='float-left'>
28 <label for="password_field" class="lbl1" >[% l('PIN Number or Password') %]</label>
29 <div class="input_bg">
30 <input id="password_field" name="password" type="password" />
32 [% INCLUDE "opac/parts/login/password_hint.tt2" %]
33 [% IF reset_password == 'true' %]
34 <a style="font-size: 80%" href='[% mkurl(ctx.opac_root _ '/password_reset', {}, 1) %]'>[% l('Forgot your password?') %]</a>
37 <div style="clear: both; padding-top: 15px;">
39 redirect = CGI.param('redirect_to');
40 # Don't use referer unless we got here from elsewhere within the TPAC
41 IF !redirect AND ctx.referer.match('^https?://' _ ctx.hostname _ ctx.opac_root);
42 redirect = ctx.referer;
44 # If no redirect is offered or it's leading us back to the
45 # login form, redirect the user to My Account
46 IF !redirect OR redirect.match(ctx.path_info _ '$');
47 redirect = CGI.url('-full' => 1) _ '/opac/myopac/main';
49 redirect = redirect | replace('^http:', 'https:');
51 <input type='hidden' name='redirect_to' value='[% redirect | html %]'/>
52 <input type="checkbox" name="persist" id="login_persist" /><label for="login_persist"> [% l('Stay logged in?') %]</label>
53 <input type="submit" value="[% l('Log in') %]" alt="[% l('Log in') %]" class="opac-button" />
55 <input id="client_tz_id" name="client_tz" type="hidden" />
58 [% INCLUDE "opac/parts/login/help.tt2" %]