Bugzilla – Attachment 80388 Details for
Bug 21311
Remove locked message from opac-auth.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21311: Remove locked message from opac-auth.tt
Bug-21311-Remove-locked-message-from-opac-authtt.patch (text/plain), 2.92 KB, created by
Marcel de Rooy
on 2018-10-11 08:20:28 UTC
(
hide
)
Description:
Bug 21311: Remove locked message from opac-auth.tt
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2018-10-11 08:20:28 UTC
Size:
2.92 KB
patch
obsolete
>From 02613c542d313f8f0350821d0fb35a69771905fc Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 10 Oct 2018 16:04:38 +0200 >Subject: [PATCH] Bug 21311: Remove locked message from opac-auth.tt >Content-Type: text/plain; charset=utf-8 > >We should not expose more information than needed when someone tries >to login with invalid credentials. Saying that an account is locked >reveals that the account exists (or perhaps an email address). > >Trivial fix. Keeping the var too_many_login_attempts for staff. >Note: We do not remove this distinction for the staff client here (in the >assumption that a library may well have additional security measures in >place for staff client). But it could be done too (on another report). > >Test plan: >Enable lockout feature. >Enter invalid credentials until account locks out (on OPAC !!) >Note that message does no longer change to 'Account is locked'. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt | 15 +++------------ > 1 file changed, 3 insertions(+), 12 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt >index ccaddde..b45c06f 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt >@@ -57,19 +57,10 @@ > [% END %] > > >- [% IF too_many_login_attempts %] >+ [% IF invalid_username_or_password || too_many_login_attempts %] >+ <!-- This is what is displayed if user doesnt have permission or account is locked. (Do not expose more information than needed.) --> > <div class="alert alert-info"> >- This account has been locked! >- [% IF Koha.Preference('OpacResetPassword') %] >- <a href="/cgi-bin/koha/opac-password-recovery.pl">You must reset your password</a>. >- [% ELSE %] >- Please contact a library staff member. >- [% END %] >- </div> >- [% ELSIF invalid_username_or_password %] >- <!-- This is what is displayed if user doesnt have permission --> >- <div class="alert alert-info"> >- <p>You entered an incorrect username or password. Please try again! And remember, passwords are case sensitive.</p> >+ <p>You entered an incorrect username or password. Please try again! And remember, passwords are case sensitive. Please contact a library staff member if you continue to have problems.</p> > </div> > [% END %] > >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21311
:
80352
|
80388
|
80623
|
81123
|
81124
|
81125
|
81403