3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog ›
5 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
10 [% INCLUDE 'doc-head-close.inc' %]
11 [% BLOCK cssinclude %][% END %]
13 [% INCLUDE 'bodytag.inc' bodyid='opac-login-page' bodyclass='scrollto' %]
14 [% INCLUDE 'masthead.inc' %]
17 <ul class="breadcrumb">
18 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
19 <li><a href="#">Log in</a></li>
22 <div class="container-fluid">
23 <div class="row-fluid">
24 <div class="span7 offset2">
25 <div id="opac-auth" class="maincontent">
27 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
28 [% IF ( nopermission ) %]
29 <!-- This is what is displayed if user doesnt have permission -->
31 <h3>Access denied</h3>
32 <p>Sorry, the system doesn't think you have permission to access this page. </p>
34 <p><a href="/cgi-bin/koha/sco/sco-main.pl?logout.x=1">Log out and try again with a different user.</a></p>
36 <p><a href="/cgi-bin/koha/sci/sci-main.pl?logout.x=1">Log out and try again with a different user.</a></p>
41 [% IF ( loginprompt ) %]
42 <!-- login prompt time-->
43 <h3>Log in to your account</h3>
45 [% IF ( timed_out ) %]
46 <!-- This is what is displayed if login has timed out -->
47 <div class="alert alert-info">
48 <p>Sorry, your session has timed out. Please log in again.</p>
52 [% IF ( different_ip ) %]
53 <!-- This is what is displayed if user doesnt have permission -->
54 <div class="alert alert-info">
55 <p>You are logging from a different IP address. Please log in again.</p>
60 [% IF invalid_username_or_password || too_many_login_attempts %]
61 <!-- This is what is displayed if user doesnt have permission or account is locked. (Do not expose more information than needed.) -->
62 <div class="alert alert-info">
63 <p>You entered an incorrect username or password. Please try again! But note that passwords are case sensitive[% IF Koha.Preference('FailedLoginAttempts') %] and that your account will be locked out after a fixed number of failed login attempts[% END %]. Please contact a library staff member if you continue to have problems.</p>
67 [% IF ( shibbolethAuthentication ) %]
68 [% IF ( invalidShibLogin ) %]
69 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
70 <div class="alert alert-info">
71 <p>Sorry, your Shibboleth identity does not match a valid library identity.</p>
72 [% IF ( casAuthentication ) %]
73 [% IF ( invalidCasLogin ) %]
74 <!-- This is what is displayed if cas login has failed -->
75 <p>Sorry, the CAS login also failed. If you have a local login you may use that below.</p>
77 <p>If you have a CAS account, you may use that below.</p>
80 <p>If you have a local account, you may use that below.</p>
84 <h4>Shibboleth Login</h4>
85 <p><a href="[% shibbolethLoginUrl | uri %]">If you have a Shibboleth account, please click here to log in.</a></p>
87 [% IF ( casAuthentication ) %]
89 <p>If you do not have a Shibboleth account, but you do have a CAS account, you can use CAS.</p>
92 <p>If you do not have a Shibboleth account, but you do have a local login, then you may login below.</p>
97 [% IF ( casAuthentication ) %]
98 [% IF ( shibbolethAuthentication ) %]
99 [% IF ( casServerUrl ) %]
100 <p><a href="[% casServerUrl | uri %]">Please click here to log in.</a><p>
103 [% IF ( casServersLoop ) %]
104 <p>Please choose against which one you would like to authenticate: </p>
106 [% FOREACH casServer IN casServersLoop %]
107 <li><a href="[% casServer.value | uri %]">[% casServer.name | html %]</a></li>
114 [% IF ( invalidCasLogin ) %]
115 <!-- This is what is displayed if cas login has failed -->
116 <p>Sorry, the CAS login failed.</p>
119 [% IF ( casServerUrl ) %]
120 <p><a href="[% casServerUrl | uri %]">If you have a CAS account, please click here to log in.</a><p>
123 [% IF ( casServersLoop ) %]
124 <p>If you have a CAS account, please choose against which one you would like to authenticate:</p>
126 [% FOREACH casServer IN casServersLoop %]
127 <li><a href="[% casServer.value | uri %]">[% casServer.name | html %]</a></li>
133 [% IF ( shibbolethAuthentication ) %]
137 <p>If you do not have a CAS account, but do have a local account, you can still log in: </p>
140 [% END # / IF casAuthentication %]
142 [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
143 [% IF ( invalidGoogleOpenIDConnectLogin ) %]
144 <h4>Google login</h4>
145 <p>Sorry, your Google login failed. <span class="error">[% invalidGoogleOpenIDConnectLogin | html %]</span></p>
146 <p>Please note that the Google login will only work if you are using the e-mail address registered with this library.</p>
147 <p>If you want to, you can try to <a href="/cgi-bin/koha/svc/auth/googleopenidconnect?reauthenticate=select_account">log in using a different account</a>
149 <a href="/cgi-bin/koha/svc/auth/googleopenidconnect" class="btn btn-primary" id="openid_connect">Log in with Google</a>
150 <p>If you do not have a Google account, but do have a local account, you can still log in: </p>
154 <form action="/cgi-bin/koha/sco/sco-main.pl" name="auth" id="auth" method="post" autocomplete="off">
155 [% ELSIF SCI_login %]
156 <form action="/cgi-bin/koha/sci/sci-main.pl" name="auth" id="auth" method="post" autocomplete="off">
158 <form action="[% script_name | html %]" name="auth" id="auth" method="post" autocomplete="off">
160 <input type="hidden" name="koha_login_context" value="opac" />
161 <fieldset class="brief">
162 [% FOREACH INPUT IN INPUTS %]
163 <input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" />
165 <label for="userid">Login</label>
166 <input type="text" size="25" id="userid" name="userid" />
167 <label for="password">Password</label><input type="password" size="25" id="password" name="password" />
170 <input type="submit" value="Log in" class="btn" />
172 [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %]
173 <div id="forgotpassword">
174 <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
177 <div id="nologininstructions">
178 [% IF Koha.Preference('OpacLoginInstructions') %]
179 [% Koha.Preference('OpacLoginInstructions') | $raw %]
181 <h5>Don't have a password yet?</h5>
182 <p>If you don't have a password yet, stop by the circulation desk the next time you're in the library. We'll happily set one up for you.</p>
183 <h5>Don't have a library card?</h5>
184 <p>If you don't have a library card, stop by your local library to sign up.</p>
185 [% END # / IF Koha.Preference('OpacLoginInstructions') %]
187 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions"><a href="/cgi-bin/koha/opac-memberentry.pl">You may register here.</a></span>
191 [% END # / IF loginprompt %]
194 <h4>Logging on to the catalog has not been enabled by the library.</h4>
196 <li>To report this error, you can email the Koha Administrator.<a href="mailto:[% admin | uri %]">Email</a></li>
197 <li>Use top menu bar to navigate to another part of Koha.</li>
199 [% END # / IF opacuserlogin %]
201 </div> <!-- /.opac-auth -->
202 </div> <!-- /.span12 -->
203 </div> <!-- /.row-fluid -->
204 </div> <!-- /.container-fluid -->
205 </div> <!-- /.main -->
207 [% INCLUDE 'opac-bottom.inc' %]
208 [% BLOCK jsinclude %]
211 // Hide circular 'Log in to Your Account' link in opac-auth.pl
212 $(document).ready(function() {
213 if ( $("#auth" ) ) { $("#members ul li a").hide(); }