View | Details | Raw Unified | Return to bug 18821
Collapse All | Expand All

(-)a/C4/Auth.pm (+11 lines)
Lines 2076-2081 sub getborrowernumber { Link Here
2076
    return 0;
2076
    return 0;
2077
}
2077
}
2078
2078
2079
=head2 track_login_for_session
2080
2081
  track_login_for_session( $userid, $session );
2082
2083
C<$userid> the userid of the member
2084
C<$session> the CGI::Session object used to store the session's state.
2085
2086
Wraps the call to $patron->track_login, the method used to update borrowers.lastseen.
2087
2088
=cut
2089
2079
sub track_login_for_session {
2090
sub track_login_for_session {
2080
    my ( $userid, $session ) = @_;
2091
    my ( $userid, $session ) = @_;
2081
2092
(-)a/t/db_dependent/Auth.t (-2 / +1 lines)
Lines 94-100 subtest 'track_login_for_session() tests' => sub { Link Here
94
    $patron->_result()->discard_changes();
94
    $patron->_result()->discard_changes();
95
    isnt( $patron->lastseen, undef, 'Patron should have last seen set when TrackLastPatronActivity = 1' );
95
    isnt( $patron->lastseen, undef, 'Patron should have last seen set when TrackLastPatronActivity = 1' );
96
96
97
	sleep(1); # We need to wait a tiny bit to make sure the timestamp will be different
97
    sleep(1); # We need to wait a tiny bit to make sure the timestamp will be different
98
    my $last_seen = $patron->lastseen;
98
    my $last_seen = $patron->lastseen;
99
    C4::Auth::track_login_for_session( $userid, $session );
99
    C4::Auth::track_login_for_session( $userid, $session );
100
    $patron->_result()->discard_changes();
100
    $patron->_result()->discard_changes();
101
- 

Return to bug 18821