Bug 40680: Remove duplicated code
From commit b40ceb1cf5
Bug 39367: Manual changes
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
7adeda91f1
commit
95e704450c
23
C4/Auth.pm
23
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue