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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt (-6 / +41 lines)
Lines 62-68 Link Here
62
                                [% IF ( invalidShibLogin ) %]
62
                                [% IF ( invalidShibLogin ) %]
63
                                <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
63
                                <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
64
                                <div class="alert alert-info">
64
                                <div class="alert alert-info">
65
                                    <p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p>
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 <acronym title="Central Authentication Service">CAS</acronym> 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>
66
                                </div>
78
                                </div>
67
                                [% ELSE %]
79
                                [% ELSE %]
68
                                <h4>Shibboleth Login</h4>
80
                                <h4>Shibboleth Login</h4>
Lines 70-81 Link Here
70
                                <p>If you have a Shibboleth account,
82
                                <p>If you have a Shibboleth account,
71
                                please <a href="[% shibbolethLoginUrl %]">click here to login</a>.</p>
83
                                please <a href="[% shibbolethLoginUrl %]">click here to login</a>.</p>
72
                                [% END %]
84
                                [% END %]
73
                                <h4>Local Login</h4>
85
                                [% IF ( casAuthentication ) %]
74
                                <p>If you do not have a Shibboleth account, but a local account, you can still log in: </p>
86
                                <h4>CAS login</h4>
87
                                <p>If you do not have a Shibboleth account, but you do have a <acronym title="Central Authentication Service">CAS</acronym> 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 %]
75
92
76
                            [% END %]
93
                            [% END %]
77
94
78
                            [% IF ( casAuthentication ) %]
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 %]
79
                                <h4>CAS login</h4>
110
                                <h4>CAS login</h4>
80
111
81
                                [% IF ( invalidCasLogin ) %]
112
                                [% IF ( invalidCasLogin ) %]
Lines 89-104 Link Here
89
                                [% END %]
120
                                [% END %]
90
121
91
                                [% IF ( casServersLoop ) %]
122
                                [% IF ( casServersLoop ) %]
92
                                    Please choose against which one you would like to authenticate: </p>
123
                                    please choose against which one you would like to authenticate: </p>
93
                                    <ul>
124
                                    <ul>
94
                                        [% FOREACH casServer IN casServersLoop %]
125
                                        [% FOREACH casServer IN casServersLoop %]
95
                                        <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
126
                                        <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
96
                                        [% END %]
127
                                        [% END %]
97
                                    </ul>
128
                                    </ul>
98
                                [% END %]
129
                                [% END %]
130
                                [% END %]
99
131
132
                                [% IF ( shibbolethAuthentication ) %]
133
                                <p>Nothing</p>
134
                                [% ELSE %]
100
                                <h4>Local login</h4>
135
                                <h4>Local login</h4>
101
                                <p>If you do not have a CAS account, but a local account, you can still log in: </p>
136
                                <p>If you do not have a CAS account, but do have a local account, you can still log in: </p>
137
                                [% END %]
102
138
103
                            [% END # / IF casAuthentication %]
139
                            [% END # / IF casAuthentication %]
104
140
105
- 

Return to bug 8446