5 [% PROCESS 'html_helpers.inc' %]
6 [% SET OpacLoginInstructions = KohaNews.get( location => "OpacLoginInstructions", lang => lang, library => branchcode ) %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog ›
9 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
10 Log in to your account
12 Catalog login disabled
14 [% INCLUDE 'doc-head-close.inc' %]
15 [% BLOCK cssinclude %][% END %]
17 [% INCLUDE 'bodytag.inc' bodyid='opac-login-page' bodyclass='scrollto' %]
18 [% INCLUDE 'masthead.inc' %]
21 <nav aria-label="breadcrumb">
22 <ul class="breadcrumb">
23 <li class="breadcrumb-item">
24 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
26 <li class="breadcrumb-item active" aria-current="page">
27 <a href="#">Log in</a>
32 <div class="container-fluid">
33 <div class="row justify-content-center">
34 <div class="col-md-10 col-lg-6">
35 <div id="opac-auth" class="maincontent">
37 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
38 [% IF ( nopermission ) %]
39 <!-- This is what is displayed if user doesn't have permission -->
40 <div class="alert alert-warning">
41 <h2>Access denied</h2>
42 <p>Sorry, the system doesn't think you have permission to access this page. </p>
44 <p><a href="/cgi-bin/koha/sco/sco-main.pl?logout.x=1">Log out and try again with a different user.</a></p>
46 <p><a href="/cgi-bin/koha/sci/sci-main.pl?logout.x=1">Log out and try again with a different user.</a></p>
51 [% IF ( loginprompt ) %]
52 <!-- login prompt time-->
53 <h2>Log in to your account</h2>
55 [% IF ( timed_out ) %]
56 <!-- This is what is displayed if login has timed out -->
57 <div class="alert alert-info">
58 <p>Sorry, your session has timed out. Please log in again.</p>
62 [% IF ( different_ip ) %]
63 <!-- This is what is displayed if user doesn't have permission -->
64 <div class="alert alert-info">
65 <p>You are logging from a different IP address. Please log in again.</p>
70 [% IF invalid_username_or_password || too_many_login_attempts %]
71 <!-- This is what is displayed if user doesn't have permission or account is locked. (Do not expose more information than needed.) -->
72 <div class="alert alert-info">
73 <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>
77 [% IF ( shibbolethAuthentication ) %]
78 [% IF ( invalidShibLogin ) %]
79 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
80 <div class="alert alert-info">
81 <p>Sorry, your Shibboleth identity does not match a valid library identity.</p>
82 [% UNLESS ( Koha.Preference('opacShibOnly') ) %]
83 [% IF ( casAuthentication ) %]
84 [% IF ( invalidCasLogin ) %]
85 <!-- This is what is displayed if cas login has failed -->
86 <p>Sorry, the CAS login also failed. If you have a local login you may use that below.</p>
88 <p>If you have a CAS account, you may use that below.</p>
91 <p>If you have a local account, you may use that below.</p>
96 <h3>Shibboleth Login</h3>
97 <p><a href="[% shibbolethLoginUrl | $raw %]">Log in using a Shibboleth account.</a></p>
98 [% END # /IF invalidShibLogin %]
99 [% UNLESS ( Koha.Preference('opacShibOnly') ) %]
100 [% IF ( casAuthentication ) %]
102 <p>If you do not have a Shibboleth account, but you do have a CAS account, you can use CAS.</p>
105 <p>If you do not have a Shibboleth account, but you do have a local login, then you may login below.</p>
108 [% END # /IF shibbolethAuthentication %]
110 [% UNLESS ( Koha.Preference('opacShibOnly') ) %]
111 [% IF ( casAuthentication ) %]
112 [% IF ( shibbolethAuthentication ) %]
113 [% IF ( casServerUrl ) %]
114 <p><a href="[% casServerUrl | $raw %]">Log in.</a><p>
117 [% IF ( casServersLoop ) %]
118 <p>Please choose against which one you would like to authenticate: </p>
120 [% FOREACH casServer IN casServersLoop %]
121 <li><a href="[% casServer.value | $raw %]">[% casServer.name | html %]</a></li>
128 [% IF ( invalidCasLogin ) %]
129 <!-- This is what is displayed if cas login has failed -->
130 <p>Sorry, the CAS login failed.</p>
133 [% IF ( casServerUrl ) %]
134 <p><a href="[% casServerUrl | $raw %]">Log in using a CAS account.</a><p>
137 [% IF ( casServersLoop ) %]
138 <p>If you have a CAS account, please choose against which one you would like to authenticate:</p>
140 [% FOREACH casServer IN casServersLoop %]
141 <li><a href="[% casServer.value | $raw %]">[% casServer.name | html %]</a></li>
145 [% END # /IF shibbolethAuthentication %]
147 [% IF ( shibbolethAuthentication ) %]
151 <p>If you do not have a CAS account, but do have a local account, you can still log in: </p>
154 [% END # / IF casAuthentication %]
156 [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
157 [% IF ( invalidGoogleOpenIDConnectLogin ) %]
158 <h3>Google login</h3>
159 <p>Sorry, your Google login failed. <span class="error">[% invalidGoogleOpenIDConnectLogin | html %]</span></p>
160 <p>Please note that the Google login will only work if you are using the e-mail address registered with this library.</p>
161 <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>
163 <a href="/cgi-bin/koha/svc/auth/googleopenidconnect" class="btn btn-primary" id="openid_connect">Log in with Google</a>
164 <p>If you do not have a Google account, but do have a local account, you can still log in: </p>
165 [% END # /IF GoogleOpenIDConnect %]
166 [% END # /UNLESS opacShibOnly %]
168 [% IF !Koha.Preference('opacShibOnly') or SCO_login or SCI_login %]
170 <form action="/cgi-bin/koha/sco/sco-main.pl" name="auth" id="auth" method="post" autocomplete="off">
171 [% ELSIF SCI_login %]
172 <form action="/cgi-bin/koha/sci/sci-main.pl" name="auth" id="auth" method="post" autocomplete="off">
174 <form action="[% script_name | html %]" name="auth" id="auth" method="post" autocomplete="off">
176 <input type="hidden" name="koha_login_context" value="opac" />
178 <fieldset class="brief">
179 [% FOREACH INPUT IN INPUTS %]
180 [% NEXT IF INPUT.name == 'logout.x' %]
181 <input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" />
183 <div class="form-group">
184 <label for="userid">Login</label>
185 <input class="form-control" type="text" size="25" id="userid" name="userid" />
187 <div class="form-group">
188 <label for="password">Password</label>
189 <input class="form-control" type="password" size="25" id="password" name="password" />
191 <fieldset class="action">
192 <input type="submit" value="Log in" class="btn btn-primary" />
196 [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
197 <div id="forgotpassword">
198 <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
201 <div id="nologininstructions">
202 [% IF Koha.Preference('OpacLoginInstructions') %]
203 [% Koha.Preference('OpacLoginInstructions') | $raw %]
205 <h3>Don't have a password yet?</h3>
206 <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>
207 <h3>Don't have a library card?</h3>
208 <p>If you don't have a library card, stop by your local library to sign up.</p>
209 [% END # / IF Koha.Preference('OpacLoginInstructions') %]
211 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
212 <span id="registrationinstructions">
213 <a href="/cgi-bin/koha/opac-memberentry.pl">You may register here.</a>
218 [% END # / IF !opacShibOnly or SCO_login or SCI_login %]
219 [% END # / IF loginprompt %]
222 <h2>Logging on to the catalog has not been enabled by the library.</h2>
224 <li>To report this error, you can email the Koha Administrator.<a href="mailto:[% admin | uri %]">Email</a></li>
225 <li>Use top menu bar to navigate to another part of Koha.</li>
227 [% END # / IF opacuserlogin %]
229 </div> <!-- /.opac-auth -->
230 </div> <!-- /.col-md-10 col-lg-6 -->
231 </div> <!-- /.row -->
232 </div> <!-- /.container-fluid -->
233 </div> <!-- /.main -->
235 [% INCLUDE 'opac-bottom.inc' %]
236 [% BLOCK jsinclude %]
238 // Hide circular 'Log in to Your Account' link in opac-auth.pl
239 $(document).ready(function() {
240 if ( $("#auth" ) ) { $("#members ul li a").hide(); }