From 3417a7052a549bde30f0c5c400c9f228f107308f Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 24 Jan 2024 09:59:43 +0000 Subject: [PATCH] Bug 34893: [22.05] Add a Koha::Patron->update_lastseen method Without this patch, we get an error trace whe calling AuthenticatePatron The method Koha::Patron->update_lastseen is not covered by tests! --- Koha/Patron.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 365daf2adc..c3924b8040 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -2188,6 +2188,20 @@ sub decoded_secret { return $self->secret; } +=head2 update_lastseen + + $patron->update_lastseen(); + + Patron method to update lastseen field in borrower + to record that patron has been seen via sip connection + +=cut + +sub update_lastseen { + my ( $self ) = @_; + $self->track_login; +} + =head2 Internal methods =head3 _type -- 2.39.5