Bugzilla – Attachment 167801 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) Restructure checkpw code
Bug-37104-Follow-up-Restructure-checkpw-code.patch (text/plain), 936 bytes, created by
Sam Lau
on 2024-06-17 19:40:53 UTC
(
hide
)
Description:
Bug 37104: (Follow up) Restructure checkpw code
Filename:
MIME Type:
Creator:
Sam Lau
Created:
2024-06-17 19:40:53 UTC
Size:
936 bytes
patch
obsolete
>From a2a28e6b58d6357e0dc6be35fd3b7ed69b88d806 Mon Sep 17 00:00:00 2001 >From: Sam Lau <samalau@gmail.com> >Date: Mon, 17 Jun 2024 19:25:34 +0000 >Subject: [PATCH] Bug 37104: (Follow up) Restructure checkpw code > >--- > C4/Auth.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index ab6827f615..9158c273c6 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -2058,10 +2058,10 @@ sub checkpw { > if ($patron) { > if ($passwd_ok) { > $patron->update( { login_attempts => 0 } ); >- if ( $patron->password_expired ) { >- @return = ( -2, $patron ); >- } > if ( $patron->borrowernumber eq $anonymous_patron ) { >+ @return = ( -3, $patron ); >+ } >+ elsif ( $patron->password_expired ) { > @return = ( -2, $patron ); > } > } elsif ( !$patron->account_locked ) { >-- >2.39.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 37104
:
167793
|
167795
|
167798
|
167801
|
167802
|
167811
|
167812
|
167813
|
168268
|
168269
|
168270
|
168592
|
168666
|
168694