|
Lines 57-142
Link Here
|
| 57 |
</div> |
57 |
</div> |
| 58 |
[% END %] |
58 |
[% END %] |
| 59 |
|
59 |
|
| 60 |
[% IF ( shibbolethAuthentication ) %] |
60 |
[% INCLUDE 'alt-auth.inc' %] |
| 61 |
|
|
|
| 62 |
[% IF ( invalidShibLogin ) %] |
| 63 |
<!-- This is what is displayed if shibboleth login has failed to match a koha user --> |
| 64 |
<div class="alert alert-info"> |
| 65 |
<p> |
| 66 |
Sorry, your Shibboleth identity does not match a valid library identity. |
| 67 |
[% IF ( casAuthentication ) %] |
| 68 |
[% IF ( invalidCasLogin ) %] |
| 69 |
<!-- This is what is displayed if cas login has failed --> |
| 70 |
<p>Sorry, the CAS login also failed, if you have a local login you may use that below.</p> |
| 71 |
[% ELSE %] |
| 72 |
If you have a CAS account, you may use that below. |
| 73 |
[% END %] |
| 74 |
[% ELSE %] |
| 75 |
If you have a local account, you may use that below. |
| 76 |
[% END %] |
| 77 |
</p> |
| 78 |
</div> |
| 79 |
[% ELSE %] |
| 80 |
<h4>Shibboleth Login</h4> |
| 81 |
|
| 82 |
<p>If you have a Shibboleth account, |
| 83 |
please <a href="[% shibbolethLoginUrl %]">click here to login</a>.</p> |
| 84 |
[% END %] |
| 85 |
[% IF ( casAuthentication ) %] |
| 86 |
<h4>CAS login</h4> |
| 87 |
<p>If you do not have a Shibboleth account, but you do have a CAS account, |
| 88 |
[% ELSE %] |
| 89 |
<h4>Local login</h4> |
| 90 |
<p>If you do not have a Shibboleth account, but you do have a local login, then you may login below:</p> |
| 91 |
[% END %] |
| 92 |
|
| 93 |
[% END %] |
| 94 |
|
| 95 |
[% IF ( casAuthentication ) %] |
| 96 |
[% IF ( shibbolethAuthentication ) %] |
| 97 |
[% IF ( casServerUrl ) %] |
| 98 |
please <a href="[% casServerUrl %]">click here to login</a>.<p> |
| 99 |
[% END %] |
| 100 |
|
| 101 |
[% IF ( casServersLoop ) %] |
| 102 |
please choose against which one you would like to authenticate: </p> |
| 103 |
<ul> |
| 104 |
[% FOREACH casServer IN casServersLoop %] |
| 105 |
<li><a href="[% casServer.value %]">[% casServer.name %]</a></li> |
| 106 |
[% END %] |
| 107 |
</ul> |
| 108 |
[% END %] |
| 109 |
[% ELSE %] |
| 110 |
<h4>CAS login</h4> |
| 111 |
|
| 112 |
[% IF ( invalidCasLogin ) %] |
| 113 |
<!-- This is what is displayed if cas login has failed --> |
| 114 |
<p>Sorry, the CAS login failed.</p> |
| 115 |
[% END %] |
| 116 |
|
| 117 |
<p>If you have a CAS account, |
| 118 |
[% IF ( casServerUrl ) %] |
| 119 |
please <a href="[% casServerUrl %]">click here to login</a>.<p> |
| 120 |
[% END %] |
| 121 |
|
| 122 |
[% IF ( casServersLoop ) %] |
| 123 |
please choose against which one you would like to authenticate: </p> |
| 124 |
<ul> |
| 125 |
[% FOREACH casServer IN casServersLoop %] |
| 126 |
<li><a href="[% casServer.value %]">[% casServer.name %]</a></li> |
| 127 |
[% END %] |
| 128 |
</ul> |
| 129 |
[% END %] |
| 130 |
[% END %] |
| 131 |
|
| 132 |
[% IF ( shibbolethAuthentication ) %] |
| 133 |
<p>Nothing</p> |
| 134 |
[% ELSE %] |
| 135 |
<h4>Local login</h4> |
| 136 |
<p>If you do not have a CAS account, but do have a local account, you can still log in: </p> |
| 137 |
[% END %] |
| 138 |
|
| 139 |
[% END # / IF casAuthentication %] |
| 140 |
|
61 |
|
| 141 |
<form action="/cgi-bin/koha/opac-user.pl" name="auth" id="auth" method="post"> |
62 |
<form action="/cgi-bin/koha/opac-user.pl" name="auth" id="auth" method="post"> |
| 142 |
<input type="hidden" name="koha_login_context" value="opac" /> |
63 |
<input type="hidden" name="koha_login_context" value="opac" /> |