View | Details | Raw Unified | Return to bug 32426
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-1 / +1 lines)
Lines 131-137 Link Here
131
                        [% IF error_type == 'Koha::Exceptions::Patron::InvalidUserid' %]
131
                        [% IF error_type == 'Koha::Exceptions::Patron::InvalidUserid' %]
132
                            <p>Error: Userid is not valid</p>
132
                            <p>Error: Userid is not valid</p>
133
                        [% ELSE %]
133
                        [% ELSE %]
134
                            <p>Error [% error_type %]: [% error_info %]</p>
134
                            <p>Error [% error_type | html %]: [% error_info | html %]</p>
135
                        [% END %]
135
                        [% END %]
136
                    </li></div>
136
                    </li></div>
137
                [% END %]
137
                [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-invalid.tt (-1 / +1 lines)
Lines 41-47 Link Here
41
                                [% IF error_type == 'Koha::Exceptions::Patron::InvalidUserid' %]
41
                                [% IF error_type == 'Koha::Exceptions::Patron::InvalidUserid' %]
42
                                    <p>Error: Userid is not valid</p>
42
                                    <p>Error: Userid is not valid</p>
43
                                [% ELSE %]
43
                                [% ELSE %]
44
                                    <p>Error [% error_type %]: [% error_info %]</p>
44
                                    <p>Error [% error_type | html %]: [% error_info | html %]</p>
45
                                [% END %]
45
                                [% END %]
46
                            [% END %]
46
                            [% END %]
47
                        </div>
47
                        </div>
(-)a/opac/opac-registration-verify.pl (-3 / +3 lines)
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
- 

Return to bug 32426