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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt (-10 / +9 lines)
Lines 61-81 Link Here
61
                            [% IF ( timed_out ) %]
61
                            [% IF ( timed_out ) %]
62
                                <!-- This is what is displayed if login has timed out -->
62
                                <!-- This is what is displayed if login has timed out -->
63
                                <div class="alert alert-info">
63
                                <div class="alert alert-info">
64
                                    <p>Sorry, your session has timed out. Please log in again.</p>
64
                                    <p aria-live="assertive" role="alert">Sorry, your session has timed out. Please log in again.</p>
65
                                </div>
65
                                </div>
66
                            [% END %]
66
                            [% END %]
67
67
68
                            [% IF ( different_ip ) %]
68
                            [% IF ( different_ip ) %]
69
                                <!-- This is what is displayed if user doesn't have permission -->
69
                                <!-- This is what is displayed if user doesn't have permission -->
70
                                <div class="alert alert-info">
70
                                <div class="alert alert-info">
71
                                    <p>You are logging from a different IP address. Please log in again.</p>
71
                                    <p aria-live="assertive" role="alert">You are logging from a different IP address. Please log in again.</p>
72
                                </div>
72
                                </div>
73
                            [% END %]
73
                            [% END %]
74
74
75
                            [% IF invalid_username_or_password || too_many_login_attempts %]
75
                            [% IF invalid_username_or_password || too_many_login_attempts %]
76
                                <!-- This is what is displayed if user doesn't have permission or account is locked. (Do not expose more information than needed.) -->
76
                                <!-- This is what is displayed if user doesn't have permission or account is locked. (Do not expose more information than needed.) -->
77
                                <div class="alert alert-info">
77
                                <div class="alert alert-info">
78
                                    <p
78
                                    <p aria-live="assertive" role="alert"
79
                                        >You entered an incorrect username or password. Please try again! But note that passwords are case
79
                                        >You entered an incorrect username or password. Please try again! But note that passwords are case
80
                                        sensitive[% IF Koha.Preference('FailedLoginAttempts') %]and that your account will be locked out after a fixed number of failed login attempts[% END %]. Please contact a library staff member if you
80
                                        sensitive[% IF Koha.Preference('FailedLoginAttempts') %]and that your account will be locked out after a fixed number of failed login attempts[% END %]. Please contact a library staff member if you
81
                                        continue to have problems.</p
81
                                        continue to have problems.</p
Lines 85-91 Link Here
85
85
86
                            [% IF auth_error %]
86
                            [% IF auth_error %]
87
                                <div class="alert alert-info">
87
                                <div class="alert alert-info">
88
                                    <p>There was an error authenticating to external identity provider</p>
88
                                    <p aria-live="assertive" role="alert">There was an error authenticating to external identity provider</p>
89
                                    <p>[% auth_error | html %]</p>
89
                                    <p>[% auth_error | html %]</p>
90
                                </div>
90
                                </div>
91
                            [% END %]
91
                            [% END %]
Lines 94-100 Link Here
94
                                [% IF ( invalidShibLogin ) %]
94
                                [% IF ( invalidShibLogin ) %]
95
                                    <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
95
                                    <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
96
                                    <div class="alert alert-info">
96
                                    <div class="alert alert-info">
97
                                        <p class="shib_invalid">Sorry, your Shibboleth identity does not match a valid library identity.</p>
97
                                        <p aria-live="assertive" role="alert" class="shib_invalid">Sorry, your Shibboleth identity does not match a valid library identity.</p>
98
                                        [% UNLESS ( Koha.Preference('OPACShibOnly') ) %]
98
                                        [% UNLESS ( Koha.Preference('OPACShibOnly') ) %]
99
                                            [% IF ( casAuthentication ) %]
99
                                            [% IF ( casAuthentication ) %]
100
                                                [% IF ( invalidCasLogin ) %]
100
                                                [% IF ( invalidCasLogin ) %]
Lines 142-148 Link Here
142
                                        [% IF ( invalidCasLogin ) %]
142
                                        [% IF ( invalidCasLogin ) %]
143
                                            <div class="alert alert-info">
143
                                            <div class="alert alert-info">
144
                                                <!-- This is what is displayed if cas login has failed -->
144
                                                <!-- This is what is displayed if cas login has failed -->
145
                                                <p class="cas_invalid">Sorry, the CAS login failed.</p>
145
                                                <p class="cas_invalid" role="alert" aria-live="assertive">Sorry, the CAS login failed.</p>
146
                                            </div>
146
                                            </div>
147
                                        [% END %]
147
                                        [% END %]
148
148
Lines 202-219 Link Here
202
202
203
                            [% IF !(invalid_username_or_password || too_many_login_attempts) and is_anonymous_patron %]
203
                            [% IF !(invalid_username_or_password || too_many_login_attempts) and is_anonymous_patron %]
204
                                <div class="alert alert-info">
204
                                <div class="alert alert-info">
205
                                    <p><strong>Error: </strong>You can't log in as the anonymous patron!</p>
205
                                    <p aria-live="assertive" role="alert"><strong>Error: </strong>You can't log in as the anonymous patron!</p>
206
                                </div>
206
                                </div>
207
                            [% END %]
207
                            [% END %]
208
208
209
                            [% IF !(invalid_username_or_password || too_many_login_attempts) and password_has_expired %]
209
                            [% IF !(invalid_username_or_password || too_many_login_attempts) and password_has_expired %]
210
                                [% IF date_enrolled == password_expiration_date %]
210
                                [% IF date_enrolled == password_expiration_date %]
211
                                    <div class="alert alert-info">
211
                                    <div class="alert alert-info">
212
                                        <p><strong>Error: </strong>It's your first login! You need to reset your password.</p>
212
                                        <p aria-live="assertive" role="alert"><strong>Error: </strong>It's your first login! You need to reset your password.</p>
213
                                    </div>
213
                                    </div>
214
                                [% ELSE %]
214
                                [% ELSE %]
215
                                    <div class="alert alert-info">
215
                                    <div class="alert alert-info">
216
                                        <p><strong>Error: </strong>Your password has expired!</p>
216
                                        <p aria-live="assertive" role="alert"><strong>Error: </strong>Your password has expired!</p>
217
                                    </div>
217
                                    </div>
218
                                [% END %]
218
                                [% END %]
219
                                [% IF Koha.Preference('EnableExpiredPasswordReset') %]
219
                                [% IF Koha.Preference('EnableExpiredPasswordReset') %]
220
- 

Return to bug 39494