@@ -, +, @@ removes tab in Auth.t --- C4/Auth.pm | 11 +++++++++++ t/db_dependent/Auth.t | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -2076,6 +2076,17 @@ sub getborrowernumber { return 0; } +=head2 track_login_for_session + + track_login_for_session( $userid, $session ); + +C<$userid> the userid of the member +C<$session> the CGI::Session object used to store the session's state. + +Wraps the call to $patron->track_login, the method used to update borrowers.lastseen. + +=cut + sub track_login_for_session { my ( $userid, $session ) = @_; --- a/t/db_dependent/Auth.t +++ a/t/db_dependent/Auth.t @@ -94,7 +94,7 @@ subtest 'track_login_for_session() tests' => sub { $patron->_result()->discard_changes(); isnt( $patron->lastseen, undef, 'Patron should have last seen set when TrackLastPatronActivity = 1' ); - sleep(1); # We need to wait a tiny bit to make sure the timestamp will be different + sleep(1); # We need to wait a tiny bit to make sure the timestamp will be different my $last_seen = $patron->lastseen; C4::Auth::track_login_for_session( $userid, $session ); $patron->_result()->discard_changes(); --