|
Lines 5-10
Link Here
|
| 5 |
[% USE Desks %] |
5 |
[% USE Desks %] |
| 6 |
[% USE Categories %] |
6 |
[% USE Categories %] |
| 7 |
[% USE Registers %] |
7 |
[% USE Registers %] |
|
|
8 |
[% USE AuthClient %] |
| 8 |
[% SET footerjs = 1 %] |
9 |
[% SET footerjs = 1 %] |
| 9 |
[% INCLUDE 'doc-head-open.inc' %] |
10 |
[% INCLUDE 'doc-head-open.inc' %] |
| 10 |
<title> |
11 |
<title> |
|
Lines 15-21
Link Here
|
| 15 |
[% ELSIF invalid_username_or_password %]Invalid username or password[% END %] |
16 |
[% ELSIF invalid_username_or_password %]Invalid username or password[% END %] |
| 16 |
[% IF ( different_ip ) %]IP address change[% END %] |
17 |
[% IF ( different_ip ) %]IP address change[% END %] |
| 17 |
[% IF ( timed_out ) %]Session timed out[% END %] |
18 |
[% IF ( timed_out ) %]Session timed out[% END %] |
| 18 |
[% IF ( nopermission ) %]Access denied[% END %] › Koha |
19 |
[% IF ( nopermission ) %]Access denied[% END %] |
|
|
20 |
[% IF ( auth_error ) %]Error authenticating in external provider[% END %] › Koha |
| 19 |
</title> |
21 |
</title> |
| 20 |
[% INCLUDE 'doc-head-close.inc' %] |
22 |
[% INCLUDE 'doc-head-close.inc' %] |
| 21 |
[% PROCESS 'auth-two-factor.inc' %] |
23 |
[% PROCESS 'auth-two-factor.inc' %] |
|
Lines 65-70
Link Here
|
| 65 |
<div id="login_error"><strong>Error: </strong>Invalid username or password</div> |
67 |
<div id="login_error"><strong>Error: </strong>Invalid username or password</div> |
| 66 |
[% END %] |
68 |
[% END %] |
| 67 |
|
69 |
|
|
|
70 |
[% IF auth_error %] |
| 71 |
<div id="login_error" class="alert alert-danger"> |
| 72 |
<p>There was an error authenticating to external identity provider</p> |
| 73 |
<p>[% auth_error | html %]</p> |
| 74 |
</div> |
| 75 |
[% END %] |
| 76 |
|
| 68 |
[% IF (shibbolethAuthentication) %] |
77 |
[% IF (shibbolethAuthentication) %] |
| 69 |
<!-- This is what is displayed if shib login has failed --> |
78 |
<!-- This is what is displayed if shib login has failed --> |
| 70 |
[% IF (invalidShibLogin ) %] |
79 |
[% IF (invalidShibLogin ) %] |
|
Lines 75-80
Link Here
|
| 75 |
|
84 |
|
| 76 |
[% IF !TwoFA_prompt && !TwoFA_setup && !Koha.Preference('staffShibOnly') %] |
85 |
[% IF !TwoFA_prompt && !TwoFA_setup && !Koha.Preference('staffShibOnly') %] |
| 77 |
<!-- login prompt time--> |
86 |
<!-- login prompt time--> |
|
|
87 |
[% SET auth_providers = AuthClient.get_providers('staff') %] |
| 88 |
[% IF ( ! auth_providers.empty ) %] |
| 89 |
[% FOREACH provider IN auth_providers %] |
| 90 |
<p class="clearfix"> |
| 91 |
<a href="[% provider.url | url %]" class="btn btn-light col-xs-12" id="provider_[% provider.code | html %]"> |
| 92 |
[% IF provider.icon_url %] |
| 93 |
<img src="[% provider.icon_url | url %]" style="max-height: 20px; max-width: 20px;"/> |
| 94 |
[% ELSE %] |
| 95 |
<i class="fa fa-user" aria-hidden="true"></i> |
| 96 |
[% END %] |
| 97 |
Log in with [% provider.description | html %] |
| 98 |
</a> |
| 99 |
</p> |
| 100 |
[% END %] |
| 101 |
<hr/> |
| 102 |
<p>If you do not have an external account, but do have a local account, you can still log in: </p> |
| 103 |
[% END # /IF auth_providers.size %] |
| 104 |
|
| 78 |
<form action="[% script_name | html %]" method="post" name="loginform" id="loginform"> |
105 |
<form action="[% script_name | html %]" method="post" name="loginform" id="loginform"> |
| 79 |
<input type="hidden" name="koha_login_context" value="intranet" /> |
106 |
<input type="hidden" name="koha_login_context" value="intranet" /> |
| 80 |
[% FOREACH INPUT IN INPUTS %] |
107 |
[% FOREACH INPUT IN INPUTS %] |
| 81 |
- |
|
|