[Koha-bugs] [Bug 25947] Improve locked account message
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jan 31 15:32:59 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25947
solene.ngamga at inlibro.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #145589|0 |1
is obsolete| |
--- Comment #8 from solene.ngamga at inlibro.com ---
Created attachment 145878
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=145878&action=edit
Bug 25947: Improve locked account message
When using system preference 'FailedLoginAttempts', a patron's account is
blocked after X many failed login attempts on the OPAC.
This patch adds, like for "Patron's card has expired" message :
* a message "Patron's account has been locked (due to X failed login
attempts)" on the patron details and circulation pages
* a link to change password
* a link to reset login attempts to 0
Links are only displayed if libarian has permission to edit patrons.
For administrative lock, only a message is displayed :
"Patron's account has been administratively locked"
Reset login attempts to 0 feature uses members/setstatus.pl with
resetloginattempts=y like reregistration=y for an expired patron
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)"
6. Click on "Change password", you go to change password page
7. Click on "Reset login attempts", page reloads and you see patron in unlocked
Signed-off-by: Amaury GAU <amaury.gau at bulac.fr>
Signed-off-by: Solene Ngamga <solene.ngamga at inLibro.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list