Bug 35890: Remove var loggedin
It is never used and add confusion Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
This commit is contained in:
parent
efcc2b3c32
commit
be90637a69
|
|
@ -847,7 +847,6 @@ sub checkauth {
|
|||
_version_check( $type, $query );
|
||||
|
||||
# state variables
|
||||
my $loggedin = 0;
|
||||
my $auth_state = 'failed';
|
||||
my %info;
|
||||
my ( $userid, $cookie, $sessionID, $flags );
|
||||
|
|
@ -884,7 +883,6 @@ sub checkauth {
|
|||
-secure => ( C4::Context->https_enabled() ? 1 : 0 ),
|
||||
-sameSite => 'Lax',
|
||||
));
|
||||
$loggedin = 1;
|
||||
}
|
||||
elsif ( $emailaddress) {
|
||||
# the Google OpenID Connect passes an email address
|
||||
|
|
@ -1228,7 +1226,6 @@ sub checkauth {
|
|||
my $domain = $branches->{$branchcode}->{'branchip'};
|
||||
$domain =~ s|\.\*||g;
|
||||
if ( $ip !~ /^$domain/ ) {
|
||||
$loggedin = 0;
|
||||
$cookie = $cookie_mgr->replace_in_list( $cookie, $query->cookie(
|
||||
-name => 'CGISESSID',
|
||||
-value => '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue