Lines 857-863
sub checkauth {
Link Here
|
857 |
$session->param('surname'), $session->param('branch'), |
857 |
$session->param('surname'), $session->param('branch'), |
858 |
$session->param('branchname'), $session->param('flags'), |
858 |
$session->param('branchname'), $session->param('flags'), |
859 |
$session->param('emailaddress'), $session->param('shibboleth'), |
859 |
$session->param('emailaddress'), $session->param('shibboleth'), |
860 |
$session->param('desk_id'), $session->param('desk_name') |
860 |
$session->param('desk_id'), $session->param('desk_name'), |
|
|
861 |
$session->param('register_id') |
861 |
); |
862 |
); |
862 |
C4::Context::set_shelves_userenv( 'bar', $session->param('barshelves') ); |
863 |
C4::Context::set_shelves_userenv( 'bar', $session->param('barshelves') ); |
863 |
C4::Context::set_shelves_userenv( 'pub', $session->param('pubshelves') ); |
864 |
C4::Context::set_shelves_userenv( 'pub', $session->param('pubshelves') ); |
Lines 1079-1085
sub checkauth {
Link Here
|
1079 |
C4::Context->_unset_userenv($sessionID); |
1080 |
C4::Context->_unset_userenv($sessionID); |
1080 |
} |
1081 |
} |
1081 |
my ( $borrowernumber, $firstname, $surname, $userflags, |
1082 |
my ( $borrowernumber, $firstname, $surname, $userflags, |
1082 |
$branchcode, $branchname, $emailaddress, $desk_id, $desk_name ); |
1083 |
$branchcode, $branchname, $emailaddress, $desk_id, |
|
|
1084 |
$desk_name, $register_id ); |
1083 |
|
1085 |
|
1084 |
if ( $return == 1 ) { |
1086 |
if ( $return == 1 ) { |
1085 |
my $select = " |
1087 |
my $select = " |
Lines 1128-1133
sub checkauth {
Link Here
|
1128 |
my $desk = Koha::Desks->find($desk_id); |
1130 |
my $desk = Koha::Desks->find($desk_id); |
1129 |
$desk_name = $desk ? $desk->desk_name : ''; |
1131 |
$desk_name = $desk ? $desk->desk_name : ''; |
1130 |
} |
1132 |
} |
|
|
1133 |
if ( $query->param('register_id') ) { |
1134 |
$register_id = $query->param('register_id'); |
1135 |
} |
1131 |
my $branches = { map { $_->branchcode => $_->unblessed } Koha::Libraries->search }; |
1136 |
my $branches = { map { $_->branchcode => $_->unblessed } Koha::Libraries->search }; |
1132 |
if ( $type ne 'opac' and C4::Context->boolean_preference('AutoLocation') ) { |
1137 |
if ( $type ne 'opac' and C4::Context->boolean_preference('AutoLocation') ) { |
1133 |
|
1138 |
|
Lines 1172-1177
sub checkauth {
Link Here
|
1172 |
$session->param( 'lasttime', time() ); |
1177 |
$session->param( 'lasttime', time() ); |
1173 |
$session->param( 'interface', $type); |
1178 |
$session->param( 'interface', $type); |
1174 |
$session->param( 'shibboleth', $shibSuccess ); |
1179 |
$session->param( 'shibboleth', $shibSuccess ); |
|
|
1180 |
$session->param( 'register_id', $register_id ); |
1175 |
$debug and printf STDERR "AUTH_4: (%s)\t%s %s - %s\n", map { $session->param($_) } qw(cardnumber firstname surname branch); |
1181 |
$debug and printf STDERR "AUTH_4: (%s)\t%s %s - %s\n", map { $session->param($_) } qw(cardnumber firstname surname branch); |
1176 |
} |
1182 |
} |
1177 |
$session->param('cas_ticket', $cas_ticket) if $cas_ticket; |
1183 |
$session->param('cas_ticket', $cas_ticket) if $cas_ticket; |
Lines 1181-1187
sub checkauth {
Link Here
|
1181 |
$session->param('surname'), $session->param('branch'), |
1187 |
$session->param('surname'), $session->param('branch'), |
1182 |
$session->param('branchname'), $session->param('flags'), |
1188 |
$session->param('branchname'), $session->param('flags'), |
1183 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1189 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1184 |
$session->param('desk_id'), $session->param('desk_name') |
1190 |
$session->param('desk_id'), $session->param('desk_name'), |
|
|
1191 |
$session->param('register_id') |
1185 |
); |
1192 |
); |
1186 |
|
1193 |
|
1187 |
} |
1194 |
} |
Lines 1460-1466
sub check_api_auth {
Link Here
|
1460 |
$session->param('surname'), $session->param('branch'), |
1467 |
$session->param('surname'), $session->param('branch'), |
1461 |
$session->param('branchname'), $session->param('flags'), |
1468 |
$session->param('branchname'), $session->param('flags'), |
1462 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1469 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1463 |
$session->param('desk_id'), $session->param('desk_name') |
1470 |
$session->param('desk_id'), $session->param('desk_name'), |
|
|
1471 |
$session->param('register_id') |
1464 |
); |
1472 |
); |
1465 |
|
1473 |
|
1466 |
my $ip = $session->param('ip'); |
1474 |
my $ip = $session->param('ip'); |
Lines 1621-1628
sub check_api_auth {
Link Here
|
1621 |
$session->param('number'), $session->param('id'), |
1629 |
$session->param('number'), $session->param('id'), |
1622 |
$session->param('cardnumber'), $session->param('firstname'), |
1630 |
$session->param('cardnumber'), $session->param('firstname'), |
1623 |
$session->param('surname'), $session->param('branch'), |
1631 |
$session->param('surname'), $session->param('branch'), |
|
|
1632 |
$session->param('branchname'), $session->param('flags'), |
1624 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1633 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1625 |
$session->param('desk_id'), $session->param('desk_name') |
1634 |
$session->param('desk_id'), $session->param('desk_name'), |
|
|
1635 |
$session->param('register_id') |
1626 |
); |
1636 |
); |
1627 |
return ( "ok", $cookie, $sessionID ); |
1637 |
return ( "ok", $cookie, $sessionID ); |
1628 |
} else { |
1638 |
} else { |
Lines 1711-1717
sub check_cookie_auth {
Link Here
|
1711 |
$session->param('surname'), $session->param('branch'), |
1721 |
$session->param('surname'), $session->param('branch'), |
1712 |
$session->param('branchname'), $session->param('flags'), |
1722 |
$session->param('branchname'), $session->param('flags'), |
1713 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1723 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1714 |
$session->param('desk_id'), $session->param('desk_name') |
1724 |
$session->param('desk_id'), $session->param('desk_name'), |
|
|
1725 |
$session->param('register_id') |
1715 |
); |
1726 |
); |
1716 |
|
1727 |
|
1717 |
my $ip = $session->param('ip'); |
1728 |
my $ip = $session->param('ip'); |