Lines 802-807
sub checkauth {
Link Here
|
802 |
my $q_userid = $query->param('userid') // ''; |
802 |
my $q_userid = $query->param('userid') // ''; |
803 |
|
803 |
|
804 |
my $session; |
804 |
my $session; |
|
|
805 |
print STDERR "Auth 1\n"; |
805 |
|
806 |
|
806 |
# Basic authentication is incompatible with the use of Shibboleth, |
807 |
# Basic authentication is incompatible with the use of Shibboleth, |
807 |
# as Shibboleth may return REMOTE_USER as a Shibboleth attribute, |
808 |
# as Shibboleth may return REMOTE_USER as a Shibboleth attribute, |
Lines 828-833
sub checkauth {
Link Here
|
828 |
} |
829 |
} |
829 |
elsif ( $sessionID = $query->cookie("CGISESSID") ) |
830 |
elsif ( $sessionID = $query->cookie("CGISESSID") ) |
830 |
{ # assignment, not comparison |
831 |
{ # assignment, not comparison |
|
|
832 |
print STDERR "Auth 2\n"; |
831 |
$session = get_session($sessionID); |
833 |
$session = get_session($sessionID); |
832 |
C4::Context->_new_userenv($sessionID); |
834 |
C4::Context->_new_userenv($sessionID); |
833 |
my ( $ip, $lasttime, $sessiontype ); |
835 |
my ( $ip, $lasttime, $sessiontype ); |
Lines 1221-1226
sub checkauth {
Link Here
|
1221 |
if ( $userid ) { |
1223 |
if ( $userid ) { |
1222 |
# track_login also depends on pref TrackLastPatronActivity |
1224 |
# track_login also depends on pref TrackLastPatronActivity |
1223 |
my $patron = Koha::Patrons->find({ userid => $userid }); |
1225 |
my $patron = Koha::Patrons->find({ userid => $userid }); |
|
|
1226 |
print STDERR "Auth 3: $userid\n"; |
1224 |
$patron->track_login( { session => $session } ) if $patron; |
1227 |
$patron->track_login( { session => $session } ) if $patron; |
1225 |
} |
1228 |
} |
1226 |
|
1229 |
|