View | Details | Raw Unified | Return to bug 31244
Collapse All | Expand All

(-)a/C4/Auth.pm (-1 / +1 lines)
Lines 912-918 sub checkauth { Link Here
912
912
913
                # voluntary logout the user
913
                # voluntary logout the user
914
                # check wether the user was using their shibboleth session or a local one
914
                # check wether the user was using their shibboleth session or a local one
915
                my $shibSuccess = C4::Context->userenv->{'shibboleth'};
915
                my $shibSuccess = C4::Context->userenv ? C4::Context->userenv->{'shibboleth'} : undef;
916
                $session->delete();
916
                $session->delete();
917
                $session->flush;
917
                $session->flush;
918
                $cookie = $cookie_mgr->clear_unless( $query->cookie, @$cookie );
918
                $cookie = $cookie_mgr->clear_unless( $query->cookie, @$cookie );
(-)a/C4/Auth_with_shibboleth.pm (-1 / +1 lines)
Lines 54-59 sub logout_shib { Link Here
54
    my $uri = _get_uri();
54
    my $uri = _get_uri();
55
    my $return = _get_return($query);
55
    my $return = _get_return($query);
56
    print $query->redirect( $uri . "/Shibboleth.sso/Logout?return=$return" );
56
    print $query->redirect( $uri . "/Shibboleth.sso/Logout?return=$return" );
57
    exit;
57
}
58
}
58
59
59
# Returns Shibboleth login URL with callback to the requesting URL
60
# Returns Shibboleth login URL with callback to the requesting URL
60
- 

Return to bug 31244