Lines 21-26
use CGI qw ( -utf8 );
Link Here
|
21 |
use Try::Tiny; |
21 |
use Try::Tiny; |
22 |
|
22 |
|
23 |
use C4::Auth qw( get_template_and_user ); |
23 |
use C4::Auth qw( get_template_and_user ); |
|
|
24 |
use C4::Context; |
24 |
use C4::Output qw( output_html_with_http_headers ); |
25 |
use C4::Output qw( output_html_with_http_headers ); |
25 |
use C4::Letters qw( GetPreparedLetter EnqueueLetter SendQueuedMessages ); |
26 |
use C4::Letters qw( GetPreparedLetter EnqueueLetter SendQueuedMessages ); |
26 |
use C4::Members; |
27 |
use C4::Members; |
Lines 84-90
if (
Link Here
|
84 |
template_name => "opac-registration-confirmation.tt", |
85 |
template_name => "opac-registration-confirmation.tt", |
85 |
type => "opac", |
86 |
type => "opac", |
86 |
query => $cgi, |
87 |
query => $cgi, |
87 |
authnotrequired => 1, |
88 |
authnotrequired => C4::Context->preference("OpacPublic") ? 1 : 0, |
88 |
} |
89 |
} |
89 |
); |
90 |
); |
90 |
C4::Form::MessagingPreferences::handle_form_action($cgi, { borrowernumber => $patron->borrowernumber }, $template, 1, C4::Context->preference('PatronSelfRegistrationDefaultCategory') ) if C4::Context->preference('EnhancedMessagingPreferences'); |
91 |
C4::Form::MessagingPreferences::handle_form_action($cgi, { borrowernumber => $patron->borrowernumber }, $template, 1, C4::Context->preference('PatronSelfRegistrationDefaultCategory') ) if C4::Context->preference('EnhancedMessagingPreferences'); |
Lines 146-152
if( !$template ) { # Missing token, patron exception, etc.
Link Here
|
146 |
template_name => "opac-registration-invalid.tt", |
147 |
template_name => "opac-registration-invalid.tt", |
147 |
type => "opac", |
148 |
type => "opac", |
148 |
query => $cgi, |
149 |
query => $cgi, |
149 |
authnotrequired => 1, |
150 |
authnotrequired => C4::Context->preference("OpacPublic") ? 1 : 0, |
150 |
}); |
151 |
}); |
151 |
$template->param( error_type => $error_type, error_info => $error_info ); |
152 |
$template->param( error_type => $error_type, error_info => $error_info ); |
152 |
} |
153 |
} |
153 |
- |
|
|