|
Lines 88-94
Link Here
|
| 88 |
[% IF ( casAuthentication ) %] |
88 |
[% IF ( casAuthentication ) %] |
| 89 |
[% IF ( invalidCasLogin ) %] |
89 |
[% IF ( invalidCasLogin ) %] |
| 90 |
<!-- This is what is displayed if cas login has failed --> |
90 |
<!-- This is what is displayed if cas login has failed --> |
| 91 |
<p>Sorry, the CAS login also failed. If you have a local login you may use that below.</p> |
91 |
<p class="cas_invalid">Sorry, the CAS login also failed. If you have a local login you may use that below.</p> |
| 92 |
[% ELSE %] |
92 |
[% ELSE %] |
| 93 |
<p>If you have a CAS account, you may use that below.</p> |
93 |
<p>If you have a CAS account, you may use that below.</p> |
| 94 |
[% END %] |
94 |
[% END %] |
|
Lines 103-109
Link Here
|
| 103 |
[% END # /IF invalidShibLogin %] |
103 |
[% END # /IF invalidShibLogin %] |
| 104 |
[% UNLESS ( Koha.Preference('OPACShibOnly') ) %] |
104 |
[% UNLESS ( Koha.Preference('OPACShibOnly') ) %] |
| 105 |
[% IF ( casAuthentication ) %] |
105 |
[% IF ( casAuthentication ) %] |
| 106 |
<h2>CAS login</h2> |
106 |
<h2 class="cas_title">CAS login</h2> |
| 107 |
<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 CAS account, you can use CAS.</p> |
| 108 |
[% ELSE %] |
108 |
[% ELSE %] |
| 109 |
<h2 class="shib_local_title">Local login</h2> |
109 |
<h2 class="shib_local_title">Local login</h2> |
|
Lines 116-149
Link Here
|
| 116 |
[% IF ( casAuthentication ) %] |
116 |
[% IF ( casAuthentication ) %] |
| 117 |
[% IF ( shibbolethAuthentication ) %] |
117 |
[% IF ( shibbolethAuthentication ) %] |
| 118 |
[% IF ( casServerUrl ) %] |
118 |
[% IF ( casServerUrl ) %] |
| 119 |
<p><a href="[% casServerUrl | $raw %]">Log in.</a><p> |
119 |
<p><a class="cas_url" href="[% casServerUrl | $raw %]">Log in.</a><p> |
| 120 |
[% END %] |
120 |
[% END %] |
| 121 |
|
121 |
|
| 122 |
[% IF ( casServersLoop ) %] |
122 |
[% IF ( casServersLoop ) %] |
| 123 |
<p>Please choose against which one you would like to authenticate: </p> |
123 |
<p>Please choose against which one you would like to authenticate: </p> |
| 124 |
<ul> |
124 |
<ul> |
| 125 |
[% FOREACH casServer IN casServersLoop %] |
125 |
[% FOREACH casServer IN casServersLoop %] |
| 126 |
<li><a href="[% casServer.value | $raw %]">[% casServer.name | html %]</a></li> |
126 |
<li><a class="cas_url" href="[% casServer.value | $raw %]">[% casServer.name | html %]</a></li> |
| 127 |
[% END %] |
127 |
[% END %] |
| 128 |
</ul> |
128 |
</ul> |
| 129 |
[% END %] |
129 |
[% END %] |
| 130 |
[% ELSE %] |
130 |
[% ELSE %] |
| 131 |
<h2>CAS login</h2> |
|
|
| 132 |
|
| 133 |
[% IF ( invalidCasLogin ) %] |
131 |
[% IF ( invalidCasLogin ) %] |
| 134 |
<!-- This is what is displayed if cas login has failed --> |
132 |
<div class="alert alert-info"> |
| 135 |
<p>Sorry, the CAS login failed.</p> |
133 |
<!-- This is what is displayed if cas login has failed --> |
|
|
134 |
<p class="cas_invalid">Sorry, the CAS login failed.</p> |
| 135 |
</div> |
| 136 |
[% END %] |
136 |
[% END %] |
| 137 |
|
137 |
|
|
|
138 |
<h2 class="cas_title">CAS login</h2> |
| 139 |
|
| 138 |
[% IF ( casServerUrl ) %] |
140 |
[% IF ( casServerUrl ) %] |
| 139 |
<p><a href="[% casServerUrl | $raw %]">Log in using a CAS account.</a><p> |
141 |
<p><a class="cas_url" href="[% casServerUrl | $raw %]">Log in using a CAS account.</a><p> |
| 140 |
[% END %] |
142 |
[% END %] |
| 141 |
|
143 |
|
| 142 |
[% IF ( casServersLoop ) %] |
144 |
[% IF ( casServersLoop ) %] |
| 143 |
<p>If you have a CAS account, please choose against which one you would like to authenticate:</p> |
145 |
<p>If you have a CAS account, please choose against which one you would like to authenticate:</p> |
| 144 |
<ul> |
146 |
<ul> |
| 145 |
[% FOREACH casServer IN casServersLoop %] |
147 |
[% FOREACH casServer IN casServersLoop %] |
| 146 |
<li><a href="[% casServer.value | $raw %]">[% casServer.name | html %]</a></li> |
148 |
<li><a class="cas_url" href="[% casServer.value | $raw %]">[% casServer.name | html %]</a></li> |
| 147 |
[% END %] |
149 |
[% END %] |
| 148 |
</ul> |
150 |
</ul> |
| 149 |
[% END %] |
151 |
[% END %] |
| 150 |
- |
|
|