diff --git a/C4/Auth.pm b/C4/Auth.pm index 876fec541a..e81134aeb6 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -86,7 +86,7 @@ BEGIN { } } if ($cas) { - import C4::Auth_with_cas qw(check_api_auth_cas checkpw_cas login_cas logout_cas login_cas_url logout_required); + import C4::Auth_with_cas qw(check_api_auth_cas checkpw_cas login_cas logout_cas login_cas_url logout_if_required); } } diff --git a/C4/Auth_with_cas.pm b/C4/Auth_with_cas.pm index 08ff75f2d8..08012da0ef 100644 --- a/C4/Auth_with_cas.pm +++ b/C4/Auth_with_cas.pm @@ -35,7 +35,7 @@ BEGIN { require Exporter; $debug = $ENV{DEBUG}; @ISA = qw(Exporter); - @EXPORT = qw(check_api_auth_cas checkpw_cas login_cas logout_cas login_cas_url); + @EXPORT = qw(check_api_auth_cas checkpw_cas login_cas logout_cas login_cas_url logout_if_required); } my $defaultcasserver; my $casservers; diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 317ba6af27..bdd002d342 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -64,7 +64,7 @@ BEGIN { # CAS single logout handling # Will print header and exit -C4::Context->preference('casAuthentication') and C4::Auth_with_ldap::logout_if_required($query); +C4::Context->preference('casAuthentication') and C4::Auth_with_cas::logout_if_required($query); my ( $template, $borrowernumber, $cookie ) = get_template_and_user( {