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> (cherry picked from commit 0ce8cc4c05bc96503172018775ba574e41b40ecb) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
104ed9ed0e
commit
16a7ac0fe7
1 changed files with 0 additions and 3 deletions
|
@ -815,7 +815,6 @@ sub checkauth {
|
||||||
_version_check( $type, $query );
|
_version_check( $type, $query );
|
||||||
|
|
||||||
# state variables
|
# state variables
|
||||||
my $loggedin = 0;
|
|
||||||
my $auth_state = 'failed';
|
my $auth_state = 'failed';
|
||||||
my %info;
|
my %info;
|
||||||
my ( $userid, $cookie, $sessionID, $flags );
|
my ( $userid, $cookie, $sessionID, $flags );
|
||||||
|
@ -855,7 +854,6 @@ sub checkauth {
|
||||||
-secure => ( C4::Context->https_enabled() ? 1 : 0 ),
|
-secure => ( C4::Context->https_enabled() ? 1 : 0 ),
|
||||||
-sameSite => 'Lax',
|
-sameSite => 'Lax',
|
||||||
));
|
));
|
||||||
$loggedin = 1;
|
|
||||||
}
|
}
|
||||||
elsif ( $emailaddress) {
|
elsif ( $emailaddress) {
|
||||||
# the Google OpenID Connect passes an email address
|
# the Google OpenID Connect passes an email address
|
||||||
|
@ -1203,7 +1201,6 @@ sub checkauth {
|
||||||
my $domain = $branches->{$branchcode}->{'branchip'};
|
my $domain = $branches->{$branchcode}->{'branchip'};
|
||||||
$domain =~ s|\.\*||g;
|
$domain =~ s|\.\*||g;
|
||||||
if ( $ip !~ /^$domain/ ) {
|
if ( $ip !~ /^$domain/ ) {
|
||||||
$loggedin = 0;
|
|
||||||
$cookie = $cookie_mgr->replace_in_list( $cookie, $query->cookie(
|
$cookie = $cookie_mgr->replace_in_list( $cookie, $query->cookie(
|
||||||
-name => 'CGISESSID',
|
-name => 'CGISESSID',
|
||||||
-value => '',
|
-value => '',
|
||||||
|
|
Loading…
Reference in a new issue