Lines 63-68
unless ( in_iprange(C4::Context->preference('SelfCheckAllowByIPRanges')) ) {
Link Here
|
63 |
if (C4::Context->preference('AutoSelfCheckAllowed')) |
63 |
if (C4::Context->preference('AutoSelfCheckAllowed')) |
64 |
{ |
64 |
{ |
65 |
my $AutoSelfCheckID = C4::Context->preference('AutoSelfCheckID'); |
65 |
my $AutoSelfCheckID = C4::Context->preference('AutoSelfCheckID'); |
|
|
66 |
die "Cannot auto login to self checkout, user $AutoSelfCheckID does not exist!" |
67 |
unless Koha::Patrons->search( { userid => $AutoSelfCheckID } )->count(); |
66 |
my $AutoSelfCheckPass = C4::Context->preference('AutoSelfCheckPass'); |
68 |
my $AutoSelfCheckPass = C4::Context->preference('AutoSelfCheckPass'); |
67 |
$query->param(-name=>'userid',-values=>[$AutoSelfCheckID]); |
69 |
$query->param(-name=>'userid',-values=>[$AutoSelfCheckID]); |
68 |
$query->param(-name=>'password',-values=>[$AutoSelfCheckPass]); |
70 |
$query->param(-name=>'password',-values=>[$AutoSelfCheckPass]); |
69 |
- |
|
|