From 84ca0487a05ea7532d68baa7526796cc13d55552 Mon Sep 17 00:00:00 2001 From: Ulrich Kleiber Date: Wed, 7 Feb 2018 10:06:20 +0100 Subject: [PATCH] Bug 19160: (follow-up) Fix problems introduced by renaming logout_required to logout_if_required Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart --- C4/Auth.pm | 2 +- C4/Auth_with_cas.pm | 2 +- opac/opac-user.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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( { -- 2.39.5