diff --git a/C4/Auth_with_cas.pm b/C4/Auth_with_cas.pm index dd02afc9ae..5becd96fdc 100644 --- a/C4/Auth_with_cas.pm +++ b/C4/Auth_with_cas.pm @@ -33,7 +33,7 @@ our (@ISA, @EXPORT_OK); BEGIN { require Exporter; @ISA = qw(Exporter); - @EXPORT_OK = qw(check_api_auth_cas checkpw_cas login_cas logout_cas login_cas_url logout_if_required multilpleAuth getMultipleAuth); + @EXPORT_OK = qw(check_api_auth_cas checkpw_cas login_cas logout_cas login_cas_url logout_if_required multipleAuth getMultipleAuth); } my $defaultcasserver; my $casservers; diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 3b72d2fb98..6feb144e50 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -57,6 +57,7 @@ my $query = CGI->new; # CAS single logout handling # Will print header and exit +require C4::Auth_with_cas; C4::Context->preference('casAuthentication') and C4::Auth_with_cas::logout_if_required($query); my ( $template, $borrowernumber, $cookie ) = get_template_and_user(