1 [% INCLUDE 'doc-head-open.inc' %]
3 [% IF ( nopermission ) %]Access denied[% END %]
4 [% IF ( timed_out ) %]Session timed out[% END %]
5 [% IF ( different_ip ) %]IP address change[% END %]
6 [% IF ( invalid_username_or_password ) %]Invalid username or password[% END %]
7 [% IF ( loginprompt ) %]Log in to Koha[% END %]
9 [% INCLUDE 'doc-head-close.inc' %]
11 <body id="main_auth" class="main">
13 <div id="doc" class="yui-t7">
17 <h1><a href="http://koha-community.org">Koha</a></h1>
18 [% IF ( nopermission ) %]
19 <div id="login_error">
20 <strong>Error:</strong>
21 You do not have permission to access this page.
23 <p><strong>Log in as a different user</strong></p></h2>
26 [% IF ( timed_out ) %]
27 <div id="login_error"><strong>Error: </strong>Session timed out.<br /> Please log in again</div>
30 [% IF ( different_ip ) %]
31 <div id="login_error"><strong>Error: </strong>IP address has changed. Please log in again </div>
35 <div id="login_error"><strong>Error: </strong>IndependentBranches and Autolocation are switched on and you are logging in with an IP address that doesn't match your library. </div>
38 [% IF ( invalid_username_or_password ) %]
39 <div id="login_error"><strong>Error: </strong>Invalid username or password</div>
42 <!-- login prompt time-->
43 <form action="/cgi-bin/koha/mainpage.pl" method="post" name="loginform" id="loginform">
44 <input type="hidden" name="koha_login_context" value="intranet" />
45 [% FOREACH INPUT IN INPUTS %]
46 <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
48 <p><label for="userid">Username:</label>
49 <input type="text" name="userid" id="userid" class="input focus" value="[% userid %]" size="20" tabindex="1" />
51 <p><label for="password">Password:</label>
52 <input type="password" name="password" id="password" class="input" value="" size="20" tabindex="2" />
55 [% IF ( AutoLocation ) %][% ELSE %]
56 [% IF ( IndependentBranches ) %][% ELSE %]
57 <p><label for="branch">Library:</label>
58 <select name="branch" id="branch" class="input" tabindex="3">
59 <option value="">My library</option>
60 [% FOREACH branchloo IN branchloop %]
61 <option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option>
67 <!-- <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />Remember me</label></p> -->
69 <p class="submit"><input id="submit" type="submit" value="Login" tabindex="4" /></p>
71 [% IF ( casAuthentication ) %]
74 [% IF ( invalidCasLogin ) %]
75 <!-- This is what is displayed if cas login has failed -->
76 <p>Sorry, the CAS login failed.</p>
79 <p>If you have a CAS account,
80 [% IF ( casServerUrl ) %]
81 please <a href="[% casServerUrl %]">click here to login</a>.<p>
84 [% IF ( casServersLoop ) %]
85 please choose against which one you would like to authenticate: </p>
87 [% FOREACH casServer IN casServersLoop %]
88 <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
93 [% IF ( nopermission ) %]
94 <p><a href="javascript:window.history.back()">[Previous page]</a>
95 <a href="/">[Main page]</a></p>
100 <!-- <li><a href="/cgi-bin/koha/lostpassword.pl" title="Password lost and found">Lost your password?</a></li> -->
107 $(document).ready( function() {
108 if ( document.location.hash ) {
109 $( '#loginform' ).append( '<input name="auth_forwarded_hash" type="hidden" value="' + document.location.hash + '"/>' );
114 [% INCLUDE 'intranet-bottom.inc' %]