4 [% USE AdditionalContents %]
5 [% PROCESS 'html_helpers.inc' %]
6 [% SET OpacLoginInstructions = AdditionalContents.get( location => "OpacLoginInstructions", lang => lang, library => branchcode || default_branch ) %]
7 [% INCLUDE 'doc-head-open.inc' %]
9 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
10 Log in to your account
12 Catalog login disabled
14 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog
16 [% INCLUDE 'doc-head-close.inc' %]
17 [% BLOCK cssinclude %][% END %]
19 [% INCLUDE 'bodytag.inc' bodyid='opac-login-page' bodyclass='scrollto' %]
20 [% INCLUDE 'masthead.inc' %]
23 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
24 <ol class="breadcrumb">
25 <li class="breadcrumb-item">
26 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
28 <li class="breadcrumb-item active">
29 <a href="#" aria-current="page">Log in</a>
32 </nav> <!-- /#breadcrumbs -->
34 <div class="container-fluid">
35 <div class="row justify-content-center">
36 <div class="col-md-10 col-lg-6">
37 <div id="opac-auth" class="maincontent">
39 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
40 [% IF ( nopermission ) %]
41 <!-- This is what is displayed if user doesn't have permission -->
42 <div class="alert alert-warning">
43 <h1>Access denied</h1>
44 <p>Sorry, the system doesn't think you have permission to access this page. </p>
46 <p><a href="/cgi-bin/koha/sco/sco-main.pl?logout.x=1">Log out and try again with a different user.</a></p>
48 <p><a href="/cgi-bin/koha/sci/sci-main.pl?logout.x=1">Log out and try again with a different user.</a></p>
53 [% IF ( loginprompt ) %]
54 <!-- login prompt time-->
55 <h1>Log in to your account</h1>
57 [% IF ( timed_out ) %]
58 <!-- This is what is displayed if login has timed out -->
59 <div class="alert alert-info">
60 <p>Sorry, your session has timed out. Please log in again.</p>
64 [% IF ( different_ip ) %]
65 <!-- This is what is displayed if user doesn't have permission -->
66 <div class="alert alert-info">
67 <p>You are logging from a different IP address. Please log in again.</p>
72 [% IF invalid_username_or_password || too_many_login_attempts %]
73 <!-- This is what is displayed if user doesn't have permission or account is locked. (Do not expose more information than needed.) -->
74 <div class="alert alert-info">
75 <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>
79 [% IF ( shibbolethAuthentication ) %]
80 [% IF ( invalidShibLogin ) %]
81 <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
82 <div class="alert alert-info">
83 <p>Sorry, your Shibboleth identity does not match a valid library identity.</p>
84 [% UNLESS ( Koha.Preference('OPACShibOnly') ) %]
85 [% IF ( casAuthentication ) %]
86 [% IF ( invalidCasLogin ) %]
87 <!-- This is what is displayed if cas login has failed -->
88 <p>Sorry, the CAS login also failed. If you have a local login you may use that below.</p>
90 <p>If you have a CAS account, you may use that below.</p>
93 <p>If you have a local account, you may use that below.</p>
98 <h2>Shibboleth Login</h2>
99 <p><a href="[% shibbolethLoginUrl | $raw %]">Log in using a Shibboleth account.</a></p>
100 [% END # /IF invalidShibLogin %]
101 [% UNLESS ( Koha.Preference('OPACShibOnly') ) %]
102 [% IF ( casAuthentication ) %]
104 <p>If you do not have a Shibboleth account, but you do have a CAS account, you can use CAS.</p>
107 <p>If you do not have a Shibboleth account, but you do have a local login, then you may login below.</p>
110 [% END # /IF shibbolethAuthentication %]
112 [% UNLESS ( Koha.Preference('OPACShibOnly') ) %]
113 [% IF ( casAuthentication ) %]
114 [% IF ( shibbolethAuthentication ) %]
115 [% IF ( casServerUrl ) %]
116 <p><a href="[% casServerUrl | $raw %]">Log in.</a><p>
119 [% IF ( casServersLoop ) %]
120 <p>Please choose against which one you would like to authenticate: </p>
122 [% FOREACH casServer IN casServersLoop %]
123 <li><a href="[% casServer.value | $raw %]">[% casServer.name | html %]</a></li>
130 [% IF ( invalidCasLogin ) %]
131 <!-- This is what is displayed if cas login has failed -->
132 <p>Sorry, the CAS login failed.</p>
135 [% IF ( casServerUrl ) %]
136 <p><a href="[% casServerUrl | $raw %]">Log in using a CAS account.</a><p>
139 [% IF ( casServersLoop ) %]
140 <p>If you have a CAS account, please choose against which one you would like to authenticate:</p>
142 [% FOREACH casServer IN casServersLoop %]
143 <li><a href="[% casServer.value | $raw %]">[% casServer.name | html %]</a></li>
147 [% END # /IF shibbolethAuthentication %]
149 [% IF ( shibbolethAuthentication ) %]
153 <p>If you do not have a CAS account, but do have a local account, you can still log in: </p>
156 [% END # / IF casAuthentication %]
158 [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
159 [% IF ( invalidGoogleOpenIDConnectLogin ) %]
160 <h2>Google login</h2>
161 <p>Sorry, your Google login failed. <span class="error">[% invalidGoogleOpenIDConnectLogin | html %]</span></p>
162 <p>Please note that the Google login will only work if you are using the e-mail address registered with this library.</p>
163 <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>
165 <a href="/cgi-bin/koha/svc/auth/googleopenidconnect" class="btn btn-light" id="openid_connect"><i class="fa fa-google" aria-hidden="true"></i> Log in with Google</a>
166 <p>If you do not have a Google account, but do have a local account, you can still log in: </p>
167 [% END # /IF GoogleOpenIDConnect %]
168 [% END # /UNLESS OPACShibOnly %]
170 [% IF !(invalid_username_or_password || too_many_login_attempts) and password_has_expired %]
171 <div class="alert alert-info">
172 <p><strong>Error: </strong>Your password has expired!</p>
174 [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
175 <div id="resetpassword">
176 <a href="/cgi-bin/koha/opac-password-recovery.pl">Reset your password?</a>
179 <p>You must contact the library to reset your password</p>
181 [% ELSIF !Koha.Preference('OPACShibOnly') or SCO_login or SCI_login %]
183 <form action="/cgi-bin/koha/sco/sco-main.pl" name="auth" id="auth" method="post" autocomplete="off">
184 [% ELSIF SCI_login %]
185 <form action="/cgi-bin/koha/sci/sci-main.pl" name="auth" id="auth" method="post" autocomplete="off">
187 <form action="[% script_name | html %]" name="auth" id="auth" method="post" autocomplete="off">
189 <input type="hidden" name="koha_login_context" value="opac" />
191 <fieldset class="brief">
192 [% FOREACH INPUT IN INPUTS %]
193 [% NEXT IF INPUT.name == 'logout.x' %]
194 <input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" />
196 <div class="form-group">
197 <label for="userid">Login:</label>
198 <input class="form-control" type="text" size="25" id="userid" name="userid" />
200 <div class="form-group">
201 <label for="password">Password:</label>
202 <input class="form-control" type="password" size="25" id="password" name="password" />
204 <fieldset class="action">
205 <input type="submit" value="Log in" class="btn btn-primary" />
209 <div id="nologininstructions">
210 [% IF OpacLoginInstructions %]
211 [% PROCESS koha_news_block news => OpacLoginInstructions %]
213 <h2>Don't have a password yet?</h2>
214 <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>
215 <h2>Don't have a library card?</h2>
216 <p>If you don't have a library card, stop by your local library to sign up.</p>
217 [% END # / IF OpacLoginInstructions %]
219 [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
220 <div id="forgotpassword">
221 <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
224 [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
225 <div id="registrationinstructions">
227 <a href="/cgi-bin/koha/opac-memberentry.pl">You may register here.</a>
232 [% END # / IF password_has_expired / ELSIF !OPACShibOnly or SCO_login or SCI_login %]
233 [% END # / IF loginprompt %]
236 <h1>Logging on to the catalog has not been enabled by the library.</h1>
238 <li>To report this error, you can email the Koha Administrator.<a href="mailto:[% admin | uri %]">Email</a></li>
239 <li>Use top menu bar to navigate to another part of Koha.</li>
241 [% END # / IF opacuserlogin %]
243 </div> <!-- /.opac-auth -->
244 </div> <!-- /.col-md-10 col-lg-6 -->
245 </div> <!-- /.row -->
246 </div> <!-- /.container-fluid -->
247 </div> <!-- /.main -->
249 [% INCLUDE 'opac-bottom.inc' %]
250 [% BLOCK jsinclude %]
252 // Hide circular 'Log in to Your Account' link in opac-auth.pl
253 $(document).ready(function() {
254 if ( $("#auth" ) ) { $("#members ul li a").hide(); }