Bug 35904: Remove var loggedin

It is never used and add confusion

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2024-01-24 16:24:51 +01:00
parent 05dad853b7
commit 16a648e9ca
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0

View file

@ -814,7 +814,6 @@ sub checkauth {
_version_check( $type, $query );
# state variables
my $loggedin = 0;
my $auth_state = 'failed';
my %info;
my ( $userid, $cookie, $sessionID, $flags );
@ -854,7 +853,6 @@ sub checkauth {
-secure => ( C4::Context->https_enabled() ? 1 : 0 ),
-sameSite => 'Lax',
));
$loggedin = 1;
}
elsif ( $emailaddress) {
# the Google OpenID Connect passes an email address
@ -1202,7 +1200,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 => '',