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 sensitive.
79
                                        >You entered an incorrect username or password. Please try again! But note that passwords are case sensitive.
80
                                        [% IF Koha.Preference('FailedLoginAttempts') %]
80
                                        [% IF Koha.Preference('FailedLoginAttempts') %]
81
                                            Your account will be locked after a fixed number of failed login attempts.
81
                                            Your account will be locked after a fixed number of failed login attempts.
Lines 87-93 Link Here
87
87
88
                            [% IF auth_error %]
88
                            [% IF auth_error %]
89
                                <div class="alert alert-info">
89
                                <div class="alert alert-info">
90
                                    <p>There was an error authenticating to external identity provider</p>
90
                                    <p aria-live="assertive" role="alert">There was an error authenticating to external identity provider</p>
91
                                    <p>[% auth_error | html %]</p>
91
                                    <p>[% auth_error | html %]</p>
92
                                </div>
92
                                </div>
93
                            [% END %]
93
                            [% END %]
Lines 96-102 Link Here
96
                                [% IF ( invalidShibLogin ) %]
96
                                [% IF ( invalidShibLogin ) %]
97
                                    <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
97
                                    <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
98
                                    <div class="alert alert-info">
98
                                    <div class="alert alert-info">
99
                                        <p class="shib_invalid">Sorry, your Shibboleth identity does not match a valid library identity.</p>
99
                                        <p aria-live="assertive" role="alert" class="shib_invalid">Sorry, your Shibboleth identity does not match a valid library identity.</p>
100
                                        [% UNLESS ( Koha.Preference('OPACShibOnly') ) %]
100
                                        [% UNLESS ( Koha.Preference('OPACShibOnly') ) %]
101
                                            [% IF ( casAuthentication ) %]
101
                                            [% IF ( casAuthentication ) %]
102
                                                [% IF ( invalidCasLogin ) %]
102
                                                [% IF ( invalidCasLogin ) %]
Lines 144-150 Link Here
144
                                        [% IF ( invalidCasLogin ) %]
144
                                        [% IF ( invalidCasLogin ) %]
145
                                            <div class="alert alert-info">
145
                                            <div class="alert alert-info">
146
                                                <!-- This is what is displayed if cas login has failed -->
146
                                                <!-- This is what is displayed if cas login has failed -->
147
                                                <p class="cas_invalid">Sorry, the CAS login failed.</p>
147
                                                <p class="cas_invalid" role="alert" aria-live="assertive">Sorry, the CAS login failed.</p>
148
                                            </div>
148
                                            </div>
149
                                        [% END %]
149
                                        [% END %]
150
150
Lines 204-221 Link Here
204
204
205
                            [% IF !(invalid_username_or_password || too_many_login_attempts) and is_anonymous_patron %]
205
                            [% IF !(invalid_username_or_password || too_many_login_attempts) and is_anonymous_patron %]
206
                                <div class="alert alert-info">
206
                                <div class="alert alert-info">
207
                                    <p><strong>Error: </strong>You can't log in as the anonymous patron!</p>
207
                                    <p aria-live="assertive" role="alert"><strong>Error: </strong>You can't log in as the anonymous patron!</p>
208
                                </div>
208
                                </div>
209
                            [% END %]
209
                            [% END %]
210
210
211
                            [% IF !(invalid_username_or_password || too_many_login_attempts) and password_has_expired %]
211
                            [% IF !(invalid_username_or_password || too_many_login_attempts) and password_has_expired %]
212
                                [% IF date_enrolled == password_expiration_date %]
212
                                [% IF date_enrolled == password_expiration_date %]
213
                                    <div class="alert alert-info">
213
                                    <div class="alert alert-info">
214
                                        <p><strong>Error: </strong>It's your first login! You need to reset your password.</p>
214
                                        <p aria-live="assertive" role="alert"><strong>Error: </strong>It's your first login! You need to reset your password.</p>
215
                                    </div>
215
                                    </div>
216
                                [% ELSE %]
216
                                [% ELSE %]
217
                                    <div class="alert alert-info">
217
                                    <div class="alert alert-info">
218
                                        <p><strong>Error: </strong>Your password has expired!</p>
218
                                        <p aria-live="assertive" role="alert"><strong>Error: </strong>Your password has expired!</p>
219
                                    </div>
219
                                    </div>
220
                                [% END %]
220
                                [% END %]
221
                                [% IF Koha.Preference('EnableExpiredPasswordReset') %]
221
                                [% IF Koha.Preference('EnableExpiredPasswordReset') %]
222
- 

Return to bug 39494