Bugzilla – Attachment 167812 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), 984 bytes, created by
David Nind
on 2024-06-18 00:18:09 UTC
(
hide
)
Description:
Bug 37104: (Follow up) Restructure checkpw code
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-06-18 00:18:09 UTC
Size:
984 bytes
patch
obsolete
>From bd9cb7279cf335354adae981acf9a4f7a7f709a4 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 > >Signed-off-by: David Nind <david@davidnind.com> >--- > 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