[Koha-bugs] [Bug 25947] Improve locked account message

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 3 10:23:32 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25947

--- Comment #11 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Fridolin Somers from comment #6)
> Reset login attempts as been asked by the library, this is a new feature.
> I hope it makes sens, otherwise I may create a new bug report.

+my $resetloginattempts = $input->param('resetloginattempts') || '';

 my $dbh = C4::Context->dbh;
 my $dateexpiry;
@@ -54,6 +55,8 @@ if ( $logged_in_user->can_see_patron_infos($patron) ) {
     if ( $reregistration eq 'y' ) {
         # re-reregistration function to automatic calcul of date expiry
         $dateexpiry = $patron->renew_account;
+    } elsif ( $resetloginattempts eq 'y' ) {
+        $patron->login_attempts(0)->store;

This is not expected here. Improve a message?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list