From 0f4bad73def87e15fc4a45d457b6a25ef03085cd Mon Sep 17 00:00:00 2001 From: Martin Renvoize 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. Signed-off-by: Jonathan Druart --- C4/ILSDI/Services.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index c7c5bf994c..64b481bc6f 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -397,6 +397,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.39.5