From 99f039e4f69a5e08b6af1f4ee82935eb6e3d8484 Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Tue, 20 Aug 2024 20:09:06 +0300 Subject: [PATCH] Bug 37692 - Self-registration verification cannot be done if OPACPublic is not allowed Registering new accounts need to be done even though OPAC requires login. --- opac/opac-registration-verify.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opac/opac-registration-verify.pl b/opac/opac-registration-verify.pl index d3ae183384..56cc77ff32 100755 --- a/opac/opac-registration-verify.pl +++ b/opac/opac-registration-verify.pl @@ -70,7 +70,7 @@ if ( $rego_found template_name => "opac-registration-confirmation.tt", type => "opac", query => $cgi, - authnotrequired => C4::Context->preference("OpacPublic") ? 1 : 0, + authnotrequired => 1, } ); $template->param( "token" => $token ); @@ -111,7 +111,7 @@ elsif ( $rego_found template_name => "opac-registration-confirmation.tt", type => "opac", query => $cgi, - authnotrequired => C4::Context->preference("OpacPublic") ? 1 : 0, + authnotrequired => 1, } ); $template->param( "confirmed" => 1 ); @@ -173,7 +173,7 @@ if( !$template ) { # Missing token, patron exception, etc. template_name => "opac-registration-invalid.tt", type => "opac", query => $cgi, - authnotrequired => C4::Context->preference("OpacPublic") ? 1 : 0, + authnotrequired => 1, }); $template->param( error_type => $error_type, error_info => $error_info ); } -- 2.39.2