Lines 867-873
sub checkauth {
Link Here
|
867 |
$session->param('surname'), $session->param('branch'), |
867 |
$session->param('surname'), $session->param('branch'), |
868 |
$session->param('branchname'), $session->param('flags'), |
868 |
$session->param('branchname'), $session->param('flags'), |
869 |
$session->param('emailaddress'), $session->param('shibboleth'), |
869 |
$session->param('emailaddress'), $session->param('shibboleth'), |
870 |
$session->param('desk_id'), $session->param('desk_name') |
870 |
$session->param('desk_id'), $session->param('desk_name'), |
|
|
871 |
$session->param('register_id') |
871 |
); |
872 |
); |
872 |
C4::Context::set_shelves_userenv( 'bar', $session->param('barshelves') ); |
873 |
C4::Context::set_shelves_userenv( 'bar', $session->param('barshelves') ); |
873 |
C4::Context::set_shelves_userenv( 'pub', $session->param('pubshelves') ); |
874 |
C4::Context::set_shelves_userenv( 'pub', $session->param('pubshelves') ); |
Lines 1089-1095
sub checkauth {
Link Here
|
1089 |
C4::Context->_unset_userenv($sessionID); |
1090 |
C4::Context->_unset_userenv($sessionID); |
1090 |
} |
1091 |
} |
1091 |
my ( $borrowernumber, $firstname, $surname, $userflags, |
1092 |
my ( $borrowernumber, $firstname, $surname, $userflags, |
1092 |
$branchcode, $branchname, $emailaddress, $desk_id, $desk_name ); |
1093 |
$branchcode, $branchname, $emailaddress, $desk_id, |
|
|
1094 |
$desk_name, $register_id ); |
1093 |
|
1095 |
|
1094 |
if ( $return == 1 ) { |
1096 |
if ( $return == 1 ) { |
1095 |
my $select = " |
1097 |
my $select = " |
Lines 1138-1143
sub checkauth {
Link Here
|
1138 |
my $desk = Koha::Desks->find($desk_id); |
1140 |
my $desk = Koha::Desks->find($desk_id); |
1139 |
$desk_name = $desk ? $desk->desk_name : ''; |
1141 |
$desk_name = $desk ? $desk->desk_name : ''; |
1140 |
} |
1142 |
} |
|
|
1143 |
if ( $query->param('register_id') ) { |
1144 |
$register_id = $query->param('register_id'); |
1145 |
} |
1141 |
my $branches = { map { $_->branchcode => $_->unblessed } Koha::Libraries->search }; |
1146 |
my $branches = { map { $_->branchcode => $_->unblessed } Koha::Libraries->search }; |
1142 |
if ( $type ne 'opac' and C4::Context->boolean_preference('AutoLocation') ) { |
1147 |
if ( $type ne 'opac' and C4::Context->boolean_preference('AutoLocation') ) { |
1143 |
|
1148 |
|
Lines 1182-1187
sub checkauth {
Link Here
|
1182 |
$session->param( 'lasttime', time() ); |
1187 |
$session->param( 'lasttime', time() ); |
1183 |
$session->param( 'interface', $type); |
1188 |
$session->param( 'interface', $type); |
1184 |
$session->param( 'shibboleth', $shibSuccess ); |
1189 |
$session->param( 'shibboleth', $shibSuccess ); |
|
|
1190 |
$session->param( 'register_id', $register_id ); |
1185 |
$debug and printf STDERR "AUTH_4: (%s)\t%s %s - %s\n", map { $session->param($_) } qw(cardnumber firstname surname branch); |
1191 |
$debug and printf STDERR "AUTH_4: (%s)\t%s %s - %s\n", map { $session->param($_) } qw(cardnumber firstname surname branch); |
1186 |
} |
1192 |
} |
1187 |
$session->param('cas_ticket', $cas_ticket) if $cas_ticket; |
1193 |
$session->param('cas_ticket', $cas_ticket) if $cas_ticket; |
Lines 1191-1197
sub checkauth {
Link Here
|
1191 |
$session->param('surname'), $session->param('branch'), |
1197 |
$session->param('surname'), $session->param('branch'), |
1192 |
$session->param('branchname'), $session->param('flags'), |
1198 |
$session->param('branchname'), $session->param('flags'), |
1193 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1199 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1194 |
$session->param('desk_id'), $session->param('desk_name') |
1200 |
$session->param('desk_id'), $session->param('desk_name'), |
|
|
1201 |
$session->param('register_id') |
1195 |
); |
1202 |
); |
1196 |
|
1203 |
|
1197 |
} |
1204 |
} |
Lines 1470-1476
sub check_api_auth {
Link Here
|
1470 |
$session->param('surname'), $session->param('branch'), |
1477 |
$session->param('surname'), $session->param('branch'), |
1471 |
$session->param('branchname'), $session->param('flags'), |
1478 |
$session->param('branchname'), $session->param('flags'), |
1472 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1479 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1473 |
$session->param('desk_id'), $session->param('desk_name') |
1480 |
$session->param('desk_id'), $session->param('desk_name'), |
|
|
1481 |
$session->param('register_id') |
1474 |
); |
1482 |
); |
1475 |
|
1483 |
|
1476 |
my $ip = $session->param('ip'); |
1484 |
my $ip = $session->param('ip'); |
Lines 1631-1638
sub check_api_auth {
Link Here
|
1631 |
$session->param('number'), $session->param('id'), |
1639 |
$session->param('number'), $session->param('id'), |
1632 |
$session->param('cardnumber'), $session->param('firstname'), |
1640 |
$session->param('cardnumber'), $session->param('firstname'), |
1633 |
$session->param('surname'), $session->param('branch'), |
1641 |
$session->param('surname'), $session->param('branch'), |
|
|
1642 |
$session->param('branchname'), $session->param('flags'), |
1634 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1643 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1635 |
$session->param('desk_id'), $session->param('desk_name') |
1644 |
$session->param('desk_id'), $session->param('desk_name'), |
|
|
1645 |
$session->param('register_id') |
1636 |
); |
1646 |
); |
1637 |
return ( "ok", $cookie, $sessionID ); |
1647 |
return ( "ok", $cookie, $sessionID ); |
1638 |
} else { |
1648 |
} else { |
Lines 1721-1727
sub check_cookie_auth {
Link Here
|
1721 |
$session->param('surname'), $session->param('branch'), |
1731 |
$session->param('surname'), $session->param('branch'), |
1722 |
$session->param('branchname'), $session->param('flags'), |
1732 |
$session->param('branchname'), $session->param('flags'), |
1723 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1733 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1724 |
$session->param('desk_id'), $session->param('desk_name') |
1734 |
$session->param('desk_id'), $session->param('desk_name'), |
|
|
1735 |
$session->param('register_id') |
1725 |
); |
1736 |
); |
1726 |
|
1737 |
|
1727 |
my $ip = $session->param('ip'); |
1738 |
my $ip = $session->param('ip'); |