[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE Branches %] [% USE Desks %] [% USE Categories %] [% USE Registers %] [% USE AuthClient %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] [% IF TwoFA_prompt %] [% t("Two-factor authentication") | html %] › [% END %] [% IF TwoFA_setup %] [% t("Two-factor authentication setup") | html %] › [% END %] [% IF too_many_login_attempts %] [% t("This account has been locked.") | html %] › [% ELSIF invalid_username_or_password %] [% t("Invalid username or password") | html %] › [% END %] [% IF ( different_ip ) %] [% t("IP address change") | html %] › [% END %] [% IF ( timed_out ) %] [% t("Session timed out") | html %] › [% END %] [% IF ( nopermission ) %] [% t("Access denied") | html %] › [% END %] [% IF ( auth_error ) %] [% t("Error authenticating with external provider") | html %] › [% END %] [% IF ( loginprompt ) %] [% t("Log in to Koha") | html %] › [% END %] [% t("Koha") | html %] [% END %] [% INCLUDE 'doc-head-close.inc' %] [% PROCESS 'auth-two-factor.inc' %]
[% INCLUDE 'messages.inc' %]

Koha

[% IF (Koha.Preference('StaffLoginInstructions')) %]
[% Koha.Preference('StaffLoginInstructions') | $raw %]
[% END %] [% IF ( nopermission ) %]
Error: You do not have permission to access this page.

Log in as a different user

[% END %] [% IF ( timed_out ) %]
Error: Session timed out.
Please log in again
[% END %] [% IF ( different_ip ) %]
Error: IP address has changed. Please log in again
[% END %] [% IF ( wrongip ) %]
Error: Autolocation is switched on and you are logging in with an IP address that doesn't match your library.
[% END %] [% IF too_many_login_attempts %]
Error: This account has been locked!
[% IF Categories.can_any_reset_password && Koha.Preference('OpacBaseURL') %] You must reset your password. [% END %] [% ELSIF password_has_expired %]
Error: Your password has expired!
[% IF Koha.Preference('EnableExpiredPasswordReset') && Koha.Preference('OpacBaseURL') %] You must reset your password. [% ELSIF Categories.can_any_reset_password && Koha.Preference('OpacBaseURL') %] You must reset your password. [% ELSE %]

You must contact the library to reset your password

[% END %] [% ELSIF invalid_username_or_password %]
Error: Invalid username or password
[% END %] [% IF auth_error %]

There was an error authenticating to external identity provider

[% auth_error | html %]

[% END %] [% IF (shibbolethAuthentication) %] [% IF (invalidShibLogin ) %]
Error: Shibboleth login failed
[% END %]

Log in using a Shibboleth account.

[% END %] [% IF !TwoFA_prompt && !TwoFA_setup && !Koha.Preference('staffShibOnly') %] [% SET identity_providers = AuthClient.get_providers('staff') %] [% IF ( ! identity_providers.empty ) %] [% FOREACH provider IN identity_providers %]

[% IF provider.icon_url %] [% ELSE %] [% END %] Log in with [% provider.description | html %]

[% END %]

If you do not have an external account, but do have a local account, you can still log in:

[% END # /IF identity_providers.size %]
[% INCLUDE 'csrf-token.inc' %] [% FOREACH INPUT IN INPUTS %] [% NEXT IF INPUT.name == "op" %] [% NEXT IF INPUT.name == "csrf_token" %] [% NEXT IF INPUT.name == "koha_login_context" %] [% NEXT IF INPUT.name == "branch" %] [% END %]

[% UNLESS IndependentBranches %]

[% IF Koha.Preference('ForceLibrarySelection') %] [% END %] [% FOREACH l IN Branches.all( unfiltered => 1 ) %] [% END %] [% IF Koha.Preference('ForceLibrarySelection') %] Required [% END %]

[% IF Koha.Preference('UseCirculationDesks') && Desks.all %]

[% END %] [% IF Koha.Preference('UseCashRegisters') && Registers.all().size %]

[% END %] [% END %]

[% IF ( casAuthentication ) %]

Cas login

[% IF ( invalidCasLogin ) %]

Sorry, the CAS login failed.

[% END %] [% IF ( casServerUrl ) %]

If you have a CAS account, please click here to login.

[% END %] [% IF ( casServersLoop ) %]

If you have a CAS account, please choose against which one you would like to authenticate:

[% MACRO jsinclude BLOCK %] [% Asset.js("js/desk_selection.js") | $raw %] [% Asset.js("js/register_selection.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]