Bugzilla – Attachment 168666 Details for
Bug 37104
Block AnonymousPatron from logging into anything
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37104: (Follow up) Checks for unitialized value of 'anonymous_patron' system pref
Bug-37104-Follow-up-Checks-for-unitialized-value-o.patch (text/plain), 1.03 KB, created by
Jonathan Druart
on 2024-07-09 15:01:48 UTC
(
hide
)
Description:
Bug 37104: (Follow up) Checks for unitialized value of 'anonymous_patron' system pref
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-07-09 15:01:48 UTC
Size:
1.03 KB
patch
obsolete
>From 37e47d2afe57ee3e82a9455fd2c9e5f2b715a6c9 Mon Sep 17 00:00:00 2001 >From: Sam Lau <samalau@gmail.com> >Date: Mon, 8 Jul 2024 14:50:30 +0000 >Subject: [PATCH] Bug 37104: (Follow up) Checks for unitialized value of > 'anonymous_patron' system pref > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >JD Amended patch: replace '==' with 'eq' for consistency with other >occurrences. >--- > C4/Auth.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 40ef948a33d..385baaf1ea9 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -2062,7 +2062,7 @@ sub checkpw { > @return = (); > } elsif ($passwd_ok) { > $patron->update( { login_attempts => 0 } ); >- if ( $patron->borrowernumber eq $anonymous_patron ) { >+ if ( defined($anonymous_patron) && ($patron->borrowernumber == $anonymous_patron) ) { > @return = ( -3, $patron ); > } elsif ( $patron->password_expired ) { > @return = ( -2, $patron ); >-- >2.34.1
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 37104
:
167793
|
167795
|
167798
|
167801
|
167802
|
167811
|
167812
|
167813
|
168268
|
168269
|
168270
|
168592
|
168666
|
168694