+[% INCLUDE 'masthead.inc' %]
+
+
+
+
+
+
Registration invalid!
+
+
There were problems processing your registration. Please contact your library for help.
+
+
+
+
+
+
+[% IF ( OpacNav ) %]
+
+ [% INCLUDE 'navigation.inc' %]
+
+[% END %]
+
+
+[% INCLUDE 'opac-bottom.inc' %]
--- a/opac/opac-registration-verify.pl
+++ a/opac/opac-registration-verify.pl
@@ -32,22 +32,23 @@ unless ( C4::Context->preference('PatronSelfRegistration') ) {
exit;
}
-my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
- {
- template_name => "opac-registration-confirmation.tmpl",
- type => "opac",
- query => $cgi,
- authnotrequired => 1,
- }
-);
-
-$template->param(
- OpacPasswordChange => C4::Context->preference('OpacPasswordChange') );
-
my $token = $cgi->param('token');
my $m = Koha::Borrower::Modifications->new( verification_token => $token );
+my ( $template, $borrowernumber, $cookie );
if ( $m->Verify() ) {
+ ( $template, $borrowernumber, $cookie ) = get_template_and_user(
+ {
+ template_name => "opac-registration-confirmation.tmpl",
+ type => "opac",
+ query => $cgi,
+ authnotrequired => 1,
+ }
+ );
+
+ $template->param(
+ OpacPasswordChange => C4::Context->preference('OpacPasswordChange') );
+
my $borrower = $m->GetModifications();
my $password;
@@ -68,7 +69,14 @@ if ( $m->Verify() ) {
}
else {
-
+ ( $template, $borrowernumber, $cookie ) = get_template_and_user(
+ {
+ template_name => "opac-registration-invalid.tmpl",
+ type => "opac",
+ query => $cgi,
+ authnotrequired => 1,
+ }
+ );
}
output_html_with_http_headers $cgi, $cookie, $template->output;
--