From eea4c113db785b2b1f6cb1e91c0b2c396c982a97 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. --- 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