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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt (-78 / +75 lines)
Lines 30-36 Link Here
30
                                <h3>Access denied</h3>
30
                                <h3>Access denied</h3>
31
                                <p>Sorry, the system doesn't think you have permission to access this page. </p>
31
                                <p>Sorry, the system doesn't think you have permission to access this page. </p>
32
                                [% IF SCO_login %]
32
                                [% IF SCO_login %]
33
                                    <p><a href="/cgi-bin/koha/sco/sco-main.pl?logout.x=1">Logout</a> and try again with a different user</p>
33
                                    <p><a href="/cgi-bin/koha/sco/sco-main.pl?logout.x=1">Log out and try again with a different user.</a></p>
34
                                [% END %]
34
                                [% END %]
35
                            </div>
35
                            </div>
36
                        [% END %]
36
                        [% END %]
Lines 42-55 Link Here
42
                            [% IF ( timed_out ) %]
42
                            [% IF ( timed_out ) %]
43
                                <!-- This is what is displayed if login has timed out -->
43
                                <!-- This is what is displayed if login has timed out -->
44
                                <div class="alert alert-info">
44
                                <div class="alert alert-info">
45
                                    <p>Sorry, your session has timed out.  Please log in again.</p>
45
                                    <p>Sorry, your session has timed out. Please log in again.</p>
46
                                </div>
46
                                </div>
47
                            [% END %]
47
                            [% END %]
48
48
49
                            [% IF ( different_ip ) %]
49
                            [% IF ( different_ip ) %]
50
                                <!-- This is what is displayed if user doesnt have permission -->
50
                                <!-- This is what is displayed if user doesnt have permission -->
51
                                <div class="alert alert-info">
51
                                <div class="alert alert-info">
52
                                    <p>You are logging from a different IP address.  Please log in again.</p>
52
                                    <p>You are logging from a different IP address. Please log in again.</p>
53
                                </div>
53
                                </div>
54
                            [% END %]
54
                            [% END %]
55
55
Lines 61-115 Link Here
61
                            [% END %]
61
                            [% END %]
62
62
63
                            [% IF ( shibbolethAuthentication ) %]
63
                            [% IF ( shibbolethAuthentication ) %]
64
65
                                [% IF ( invalidShibLogin ) %]
64
                                [% IF ( invalidShibLogin ) %]
66
                                <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
65
                                    <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
67
                                <div class="alert alert-info">
66
                                    <div class="alert alert-info">
68
                                    <p>
67
                                    <p>Sorry, your Shibboleth identity does not match a valid library identity.</p>
69
                                    Sorry, your Shibboleth identity does not match a valid library identity.
70
                                    [% IF ( casAuthentication ) %]
68
                                    [% IF ( casAuthentication ) %]
71
                                    [% IF ( invalidCasLogin ) %]
69
                                        [% IF ( invalidCasLogin ) %]
72
                                    <!-- This is what is displayed if cas login has failed -->
70
                                            <!-- This is what is displayed if cas login has failed -->
73
                                    <p>Sorry, the CAS login also failed, if you have a local login you may use that below.</p>
71
                                            <p>Sorry, the CAS login also failed. If you have a local login you may use that below.</p>
74
                                    [% ELSE %]
72
                                        [% ELSE %]
75
                                    If you have a CAS account, you may use that below.
73
                                            <p>If you have a CAS account, you may use that below.</p>
76
                                    [% END %]
74
                                        [% END %]
77
                                    [% ELSE %]
75
                                    [% ELSE %]
78
                                    If you have a local account, you may use that below.
76
                                        <p>If you have a local account, you may use that below.</p>
79
                                    [% END %]
77
                                    [% END %]
80
                                    </p>
78
                                    </div>
81
                                </div>
79
                            [% ELSE %]
82
                                [% ELSE %]
83
                                <h4>Shibboleth Login</h4>
80
                                <h4>Shibboleth Login</h4>
84
81
                                <p><a href="[% shibbolethLoginUrl %]">If you have a Shibboleth account, please click here to log in.</a></p>
85
                                <p>If you have a Shibboleth account,
82
                            [% END %]
86
                                please <a href="[% shibbolethLoginUrl %]">click here to login</a>.</p>
83
                            [% IF ( casAuthentication ) %]
87
                                [% END %]
88
                                [% IF ( casAuthentication ) %]
89
                                <h4>CAS login</h4>
84
                                <h4>CAS login</h4>
90
                                <p>If you do not have a Shibboleth account, but you do have a CAS account,
85
                                <p>If you do not have a Shibboleth account, but you do have a CAS account, you can use CAS.</p>
91
                                [% ELSE %]
86
                            [% ELSE %]
92
                                <h4>Local login</h4>
87
                                <h4>Local login</h4>
93
                                <p>If you do not have a Shibboleth account, but you do have a local login, then you may login below:</p>
88
                                <p>If you do not have a Shibboleth account, but you do have a local login, then you may login below.</p>
94
                                [% END %]
95
96
                            [% END %]
89
                            [% END %]
97
90
98
                            [% IF ( casAuthentication ) %]
91
                        [% END %]
99
                                [% IF ( shibbolethAuthentication ) %]
92
93
                        [% IF ( casAuthentication ) %]
94
                            [% IF ( shibbolethAuthentication ) %]
100
                                [% IF ( casServerUrl ) %]
95
                                [% IF ( casServerUrl ) %]
101
                                    please <a href="[% casServerUrl %]">click here to login</a>.<p>
96
                                    <p><a href="[% casServerUrl %]">Please click here to log in.</a><p>
102
                                [% END %]
97
                                [% END %]
103
98
104
                                [% IF ( casServersLoop ) %]
99
                                [% IF ( casServersLoop ) %]
105
                                    please choose against which one you would like to authenticate: </p>
100
                                    <p>Please choose against which one you would like to authenticate: </p>
106
                                    <ul>
101
                                    <ul>
107
                                        [% FOREACH casServer IN casServersLoop %]
102
                                        [% FOREACH casServer IN casServersLoop %]
108
                                        <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
103
                                            <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
109
                                        [% END %]
104
                                        [% END %]
110
                                    </ul>
105
                                    </ul>
111
                                [% END %]
106
                                [% END %]
112
                                [% ELSE %]
107
                            [% ELSE %]
113
                                <h4>CAS login</h4>
108
                                <h4>CAS login</h4>
114
109
115
                                [% IF ( invalidCasLogin ) %]
110
                                [% IF ( invalidCasLogin ) %]
Lines 117-194 Link Here
117
                                    <p>Sorry, the CAS login failed.</p>
112
                                    <p>Sorry, the CAS login failed.</p>
118
                                [% END %]
113
                                [% END %]
119
114
120
                                <p>If you have a CAS account,
121
                                [% IF ( casServerUrl ) %]
115
                                [% IF ( casServerUrl ) %]
122
                                    please <a href="[% casServerUrl %]">click here to login</a>.<p>
116
                                   <p><a href="[% casServerUrl %]">If you have a CAS account, please click here to log in.</a><p>
123
                                [% END %]
117
                                [% END %]
124
118
125
                                [% IF ( casServersLoop ) %]
119
                                [% IF ( casServersLoop ) %]
126
                                    please choose against which one you would like to authenticate: </p>
120
                                    <p>If you have a CAS account, please choose against which one you would like to authenticate:</p>
127
                                    <ul>
121
                                    <ul>
128
                                        [% FOREACH casServer IN casServersLoop %]
122
                                        [% FOREACH casServer IN casServersLoop %]
129
                                        <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
123
                                        <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
130
                                        [% END %]
124
                                        [% END %]
131
                                    </ul>
125
                                    </ul>
132
                                [% END %]
126
                                [% END %]
133
                                [% END %]
127
                            [% END %]
134
128
135
                                [% IF ( shibbolethAuthentication ) %]
129
                            [% IF ( shibbolethAuthentication ) %]
136
                                <p>Nothing</p>
130
                                <p>Nothing</p>
137
                                [% ELSE %]
131
                            [% ELSE %]
138
                                <h4>Local login</h4>
132
                                <h4>Local login</h4>
139
                                <p>If you do not have a CAS account, but do have a local account, you can still log in: </p>
133
                                <p>If you do not have a CAS account, but do have a local account, you can still log in: </p>
140
                                [% END %]
134
                            [% END %]
141
135
142
                            [% END # / IF casAuthentication %]
136
                        [% END # / IF casAuthentication %]
143
137
144
                                [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
138
                        [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
145
                                  [% IF ( invalidGoogleOpenIDConnectLogin ) %]
139
                            [% IF ( invalidGoogleOpenIDConnectLogin ) %]
146
                                <h4>Google login</h4>
140
                                <h4>Google login</h4>
147
                                <p>Sorry, your Google login failed. <span class="error">[% invalidGoogleOpenIDConnectLogin %]</span></p>
141
                                <p>Sorry, your Google login failed. <span class="error">[% invalidGoogleOpenIDConnectLogin %]</span></p>
148
                                <p>Please note that the Google login will only work if you are using the e-mail address registered with this library.</p>
142
                                <p>Please note that the Google login will only work if you are using the e-mail address registered with this library.</p>
149
                                <p>If you want to, you can try to <a href="/cgi-bin/koha/svc/auth/googleopenidconnect?reauthenticate=select_account">log in using a different account</a>
143
                                <p>If you want to, you can try to <a href="/cgi-bin/koha/svc/auth/googleopenidconnect?reauthenticate=select_account">log in using a different account</a>
150
                                  [% END %]
144
                            [% END %]
151
                                  <a href="/cgi-bin/koha/svc/auth/googleopenidconnect" class="btn btn-primary" id="openid_connect">Log in with Google</a>
145
                                <a href="/cgi-bin/koha/svc/auth/googleopenidconnect" class="btn btn-primary" id="openid_connect">Log in with Google</a>
152
                              <p>If you do not have a Google account, but do have a local account, you can still log in: </p>
146
                                <p>If you do not have a Google account, but do have a local account, you can still log in: </p>
153
                                [% END %]
147
                        [% END %]
154
148
155
                            [% IF SCO_login %]
149
                        [% IF SCO_login %]
156
                                <form action="/cgi-bin/koha/sco/sco-main.pl" name="auth" id="auth" method="post">
150
                            <form action="/cgi-bin/koha/sco/sco-main.pl" name="auth" id="auth" method="post">
157
                            [% ELSE %]
151
                        [% ELSE %]
158
                                <form action="[% script_name %]" name="auth" id="auth" method="post">
152
                            <form action="[% script_name %]" name="auth" id="auth" method="post">
153
                        [% END %]
154
                            <input type="hidden" name="koha_login_context" value="opac" />
155
                            <fieldset class="brief">
156
                            [% FOREACH INPUT IN INPUTS %]
157
                                <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
159
                            [% END %]
158
                            [% END %]
160
                                <input type="hidden" name="koha_login_context" value="opac" />
159
                            <label for="userid">Login</label>
161
                                <fieldset class="brief">
160
                            <input type="text"  size="25" id="userid"  name="userid" />
162
                                    [% FOREACH INPUT IN INPUTS %]
161
                            <label for="password">Password</label><input type="password"  size="25" id="password"  name="password" />
163
                                        <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
162
                            </fieldset>
164
                                    [% END %]
163
165
                                    <label for="userid">Login</label>
164
                            <input type="submit" value="Log in" class="btn" />
166
                                    <input type="text"  size="25" id="userid"  name="userid" />
165
                            [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %]
167
                                    <label for="password">Password</label><input type="password"  size="25" id="password"  name="password" />
166
                                <div id="forgotpassword">
168
                                </fieldset>
167
                                    <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
169
170
                                <input type="submit" value="Log in" class="btn" />
171
                                [% IF Koha.Preference('OpacPasswordChange') && Koha.Preference('OpacResetPassword') %]
172
                                    <div id="forgotpassword">
173
                        <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
174
                                    </div>
175
                                [% END %]
176
                                <div id="nologininstructions">
177
                                    [% IF Koha.Preference('NoLoginInstructions') %]
178
                                        [% Koha.Preference('NoLoginInstructions') %]
179
                                    [% ELSE %]
180
                                        <h5>Don't have a password yet?</h5><p> If you don't have a password yet, stop by the circulation desk the next time you're in the library. We'll happily set one up for you.</p>
181
                                        <h5>Don't have a library card?</h5><p> If you don't have a library card, stop by your local library to sign up.</p>
182
                                    [% END # / IF Koha.Preference('NoLoginInstructions') %]
183
                                    [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions">You may <a href="/cgi-bin/koha/opac-memberentry.pl">register here</a>.</span>[% END %]
184
                                </div>
168
                                </div>
169
                            [% END %]
170
                            <div id="nologininstructions">
171
                            [% IF Koha.Preference('NoLoginInstructions') %]
172
                                [% Koha.Preference('NoLoginInstructions') %]
173
                            [% ELSE %]
174
                                <h5>Don't have a password yet?</h5>
175
                                <p>If you don't have a password yet, stop by the circulation desk the next time you're in the library. We'll happily set one up for you.</p>
176
                                <h5>Don't have a library card?</h5>
177
                                <p>If you don't have a library card, stop by your local library to sign up.</p>
178
                            [% END # / IF Koha.Preference('NoLoginInstructions') %]
179
180
                            [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions"><a href="/cgi-bin/koha/opac-memberentry.pl">You may register here.</a></span>
181
                            [% END %]
182
                            </div>
185
                            </form>
183
                            </form>
186
                        [% END # / IF loginprompt %]
184
                        [% END # / IF loginprompt %]
187
185
188
                    [% ELSE %]
186
                    [% ELSE %]
189
                        <h4>Logging on to the catalog has not been enabled by the library.</h4>
187
                        <h4>Logging on to the catalog has not been enabled by the library.</h4>
190
                        <ul>
188
                        <ul>
191
                            <li>To report this error, you can <a href="mailto:[% admin %]">email the Koha Administrator</a>.</li>
189
                            <li>To report this error, you can email the Koha Administrator.<a href="mailto:[% admin %]">Email</a></li>
192
                            <li>Use top menu bar to navigate to another part of Koha.</li>
190
                            <li>Use top menu bar to navigate to another part of Koha.</li>
193
                        </ul>
191
                        </ul>
194
                    [% END # / IF opacuserlogin %]
192
                    [% END # / IF opacuserlogin %]
195
- 

Return to bug 16540