|
Lines 642-648
sub checkauth {
Link Here
|
| 642 |
C4::Context->_new_userenv($sessionID); |
642 |
C4::Context->_new_userenv($sessionID); |
| 643 |
my ($ip, $lasttime, $sessiontype); |
643 |
my ($ip, $lasttime, $sessiontype); |
| 644 |
if ($session){ |
644 |
if ($session){ |
| 645 |
C4::Context::set_userenv( |
645 |
C4::Context->set_userenv( |
| 646 |
$session->param('number'), $session->param('id'), |
646 |
$session->param('number'), $session->param('id'), |
| 647 |
$session->param('cardnumber'), $session->param('firstname'), |
647 |
$session->param('cardnumber'), $session->param('firstname'), |
| 648 |
$session->param('surname'), $session->param('branch'), |
648 |
$session->param('surname'), $session->param('branch'), |
|
Lines 915-921
sub checkauth {
Link Here
|
| 915 |
if ($persona){ |
915 |
if ($persona){ |
| 916 |
$session->param('persona',1); |
916 |
$session->param('persona',1); |
| 917 |
} |
917 |
} |
| 918 |
C4::Context::set_userenv( |
918 |
C4::Context->set_userenv( |
| 919 |
$session->param('number'), $session->param('id'), |
919 |
$session->param('number'), $session->param('id'), |
| 920 |
$session->param('cardnumber'), $session->param('firstname'), |
920 |
$session->param('cardnumber'), $session->param('firstname'), |
| 921 |
$session->param('surname'), $session->param('branch'), |
921 |
$session->param('surname'), $session->param('branch'), |
|
Lines 1146-1152
sub check_api_auth {
Link Here
|
| 1146 |
my $session = get_session($sessionID); |
1146 |
my $session = get_session($sessionID); |
| 1147 |
C4::Context->_new_userenv($sessionID); |
1147 |
C4::Context->_new_userenv($sessionID); |
| 1148 |
if ($session) { |
1148 |
if ($session) { |
| 1149 |
C4::Context::set_userenv( |
1149 |
C4::Context->set_userenv( |
| 1150 |
$session->param('number'), $session->param('id'), |
1150 |
$session->param('number'), $session->param('id'), |
| 1151 |
$session->param('cardnumber'), $session->param('firstname'), |
1151 |
$session->param('cardnumber'), $session->param('firstname'), |
| 1152 |
$session->param('surname'), $session->param('branch'), |
1152 |
$session->param('surname'), $session->param('branch'), |
|
Lines 1306-1312
sub check_api_auth {
Link Here
|
| 1306 |
$session->param('ip',$session->remote_addr()); |
1306 |
$session->param('ip',$session->remote_addr()); |
| 1307 |
$session->param('lasttime',time()); |
1307 |
$session->param('lasttime',time()); |
| 1308 |
} |
1308 |
} |
| 1309 |
C4::Context::set_userenv( |
1309 |
C4::Context->set_userenv( |
| 1310 |
$session->param('number'), $session->param('id'), |
1310 |
$session->param('number'), $session->param('id'), |
| 1311 |
$session->param('cardnumber'), $session->param('firstname'), |
1311 |
$session->param('cardnumber'), $session->param('firstname'), |
| 1312 |
$session->param('surname'), $session->param('branch'), |
1312 |
$session->param('surname'), $session->param('branch'), |
|
Lines 1385-1391
sub check_cookie_auth {
Link Here
|
| 1385 |
my $session = get_session($sessionID); |
1385 |
my $session = get_session($sessionID); |
| 1386 |
C4::Context->_new_userenv($sessionID); |
1386 |
C4::Context->_new_userenv($sessionID); |
| 1387 |
if ($session) { |
1387 |
if ($session) { |
| 1388 |
C4::Context::set_userenv( |
1388 |
C4::Context->set_userenv( |
| 1389 |
$session->param('number'), $session->param('id'), |
1389 |
$session->param('number'), $session->param('id'), |
| 1390 |
$session->param('cardnumber'), $session->param('firstname'), |
1390 |
$session->param('cardnumber'), $session->param('firstname'), |
| 1391 |
$session->param('surname'), $session->param('branch'), |
1391 |
$session->param('surname'), $session->param('branch'), |