Bugzilla – Attachment 122421 Details for
Bug 28630
ILSDI::AuthenticatePatron should set borrowers.lastseen
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28630: Add track_login_daily to ILSDI::AuthenticatePatron
Bug-28630-Add-tracklogindaily-to-ILSDIAuthenticate.patch (text/plain), 1.10 KB, created by
Martin Renvoize (ashimema)
on 2021-06-25 08:52:36 UTC
(
hide
)
Description:
Bug 28630: Add track_login_daily to ILSDI::AuthenticatePatron
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-06-25 08:52:36 UTC
Size:
1.10 KB
patch
obsolete
>From eea4c113db785b2b1f6cb1e91c0b2c396c982a97 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 25 Jun 2021 09:50:50 +0100 >Subject: [PATCH] Bug 28630: Add track_login_daily to ILSDI::AuthenticatePatron > >This patch adds a call to track_login_daily for the AuthenticatePatron >method in ILSDI. > >Many libraries use this ILSDI endpoint for electron book borrowing and >need to maintain the lastseen based on this type of lending. >--- > C4/ILSDI/Services.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm >index a28c382d68..81009ff110 100644 >--- a/C4/ILSDI/Services.pm >+++ b/C4/ILSDI/Services.pm >@@ -398,6 +398,8 @@ sub AuthenticatePatron { > my $password = $cgi->param('password'); > my ($status, $cardnumber, $userid) = C4::Auth::checkpw( C4::Context->dbh, $username, $password ); > if ( $status ) { >+ # Track the login >+ C4::Auth::track_login_daily( $userid ); > # Get the borrower > my $patron = Koha::Patrons->find( { userid => $userid } ); > return { id => $patron->borrowernumber }; >-- >2.20.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 28630
:
122421
|
122422
|
122476
|
122477
|
122478
|
122490
|
122491
|
122492
|
122544
|
122545
|
122546
|
123448
|
123449
|
123450
|
123454