View | Details | Raw Unified | Return to bug 31378
Collapse All | Expand All

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

Return to bug 31378