From c0cc9b1d07d4c3b36c97f52f4b920d5a34464f0f 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 Content-Type: text/plain; charset=utf-8 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: Andrew Fuerste-Henry Signed-off-by: Marcel de Rooy --- 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