From c6008783594c51cd70650bd370e4a0e95a9dbceb Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 2 Sep 2025 11:21:36 +0200 Subject: [PATCH] Bug 40680: Remove duplicated code From commit b40ceb1cf5cb195f81347e090ade5e8bc3f316de Bug 39367: Manual changes --- C4/Auth.pm | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 20242735e1a..c655480d8ab 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -136,29 +136,6 @@ sub safe_exit { exit; } -BEGIN { - C4::Context->set_remote_address; - - require Exporter; - @ISA = qw(Exporter); - - @EXPORT_OK = qw( - checkauth check_api_auth get_session check_cookie_auth checkpw checkpw_internal checkpw_hash - get_all_subpermissions get_cataloguing_page_permissions get_user_subpermissions in_iprange - get_template_and_user haspermission create_basic_session - ); - - $cas = C4::Context->preference('casAuthentication'); - $caslogout = C4::Context->preference('casLogout'); - - if ($cas) { - require C4::Auth_with_cas; # no import - import C4::Auth_with_cas - qw(check_api_auth_cas checkpw_cas login_cas logout_cas login_cas_url logout_if_required multipleAuth getMultipleAuth); - } - -} - =head2 get_template_and_user my ($template, $borrowernumber, $cookie) -- 2.34.1