Bugzilla – Attachment 174271 Details for
Bug 25947
Improve locked account message
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25947: (follow-up) Improve locked account message
Bug-25947-follow-up-Improve-locked-account-message.patch (text/plain), 3.06 KB, created by
Baptiste Wojtkowski (bwoj)
on 2024-11-08 13:25:28 UTC
(
hide
)
Description:
Bug 25947: (follow-up) Improve locked account message
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2024-11-08 13:25:28 UTC
Size:
3.06 KB
patch
obsolete
>From 721c290501a7659c4145bae67db952abfea9e202 Mon Sep 17 00:00:00 2001 >From: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> >Date: Fri, 8 Nov 2024 14:17:00 +0100 >Subject: [PATCH] Bug 25947: (follow-up) Improve locked account message > >Test plan: > >To test: >1. Change system preference 'FailedLoginAttempts' to a small number, like 2 >2. Go to a patron's account and copy their username (while you're there, change the password and add some fines, too) >3. In the OPAC, try to log in with the username and a wrong password 3 times >4. Go back to the patron's account in the staff interface >5. Note that there is a message : "Patron's account has been locked (due to 3 failed login attempts)". Note there is a tooltip at the right >6. Click on "Change password", you go to change password page > >Note: the follow-up might be unclear to understand: >1 - it moves the button outriste the IF patron.login_attempt < 0 >2 - Hence it requires the </li> to be moved out so button remains on the > lane >3 - Finally the <li> must be put before the if and changed a bit >--- > .../prog/en/includes/patron_messages.inc | 17 ++++++++--------- > 1 file changed, 8 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >index 7dc7040b..fa96068e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >@@ -53,20 +53,19 @@ > [% END %] > > [% IF patron.account_locked %] >- [% IF patron.login_attempts < 0 %] >- <li class="blocker account_admin_locked"> >- <span class="circ-hlt">Locked: </span><span> Patron's account has been administratively locked</span> >- </li> >- [% ELSE %] >- <li class="blocker account_locked"> >- <span class="circ-hlt">Locked: </span><span> Patron's account has been locked (due to [% patron.login_attempts | html %] failed login attempts)</span> >+ <li class="blocker [% patron.login_attempts < 0 ? 'account_admin_locked' : 'account_locked' | html %]"> >+ [% IF patron.login_attempts < 0 %] >+ <span class="circ-hlt">Locked: </span><span> Patron's account has been administratively locked</span> >+ [% ELSE %] >+ <span class="circ-hlt">Locked: </span><span> Patron's account has been locked (due to [% patron.login_attempts | html %] failed login attempts)</span> >+ [% END %] > [% IF CAN_user_borrowers_edit_borrowers %] > <span> > <a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber | uri %]">Change password</a> >+ <span data-bs-toggle="tooltip" title="Resetting password will remove lock on account" data-bs-placement="right" class="fa fa-info-circle" /> > </span> > [% END %] >- </li> >- [% END %] >+ </li> > [% END %] > > >-- >2.30.2
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 25947
:
106643
|
145502
|
145503
|
145589
|
145878
|
147683
|
169844
|
169853
|
169864
|
174271
|
174272