|
Lines 32-53
unless ( C4::Context->preference('PatronSelfRegistration') ) {
Link Here
|
| 32 |
exit; |
32 |
exit; |
| 33 |
} |
33 |
} |
| 34 |
|
34 |
|
| 35 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
|
|
| 36 |
{ |
| 37 |
template_name => "opac-registration-confirmation.tmpl", |
| 38 |
type => "opac", |
| 39 |
query => $cgi, |
| 40 |
authnotrequired => 1, |
| 41 |
} |
| 42 |
); |
| 43 |
|
| 44 |
$template->param( |
| 45 |
OpacPasswordChange => C4::Context->preference('OpacPasswordChange') ); |
| 46 |
|
| 47 |
my $token = $cgi->param('token'); |
35 |
my $token = $cgi->param('token'); |
| 48 |
my $m = Koha::Borrower::Modifications->new( verification_token => $token ); |
36 |
my $m = Koha::Borrower::Modifications->new( verification_token => $token ); |
| 49 |
|
37 |
|
|
|
38 |
my ( $template, $borrowernumber, $cookie ); |
| 50 |
if ( $m->Verify() ) { |
39 |
if ( $m->Verify() ) { |
|
|
40 |
( $template, $borrowernumber, $cookie ) = get_template_and_user( |
| 41 |
{ |
| 42 |
template_name => "opac-registration-confirmation.tmpl", |
| 43 |
type => "opac", |
| 44 |
query => $cgi, |
| 45 |
authnotrequired => 1, |
| 46 |
} |
| 47 |
); |
| 48 |
|
| 49 |
$template->param( |
| 50 |
OpacPasswordChange => C4::Context->preference('OpacPasswordChange') ); |
| 51 |
|
| 51 |
my $borrower = $m->GetModifications(); |
52 |
my $borrower = $m->GetModifications(); |
| 52 |
|
53 |
|
| 53 |
my $password; |
54 |
my $password; |
|
Lines 68-74
if ( $m->Verify() ) {
Link Here
|
| 68 |
|
69 |
|
| 69 |
} |
70 |
} |
| 70 |
else { |
71 |
else { |
| 71 |
|
72 |
( $template, $borrowernumber, $cookie ) = get_template_and_user( |
|
|
73 |
{ |
| 74 |
template_name => "opac-registration-invalid.tmpl", |
| 75 |
type => "opac", |
| 76 |
query => $cgi, |
| 77 |
authnotrequired => 1, |
| 78 |
} |
| 79 |
); |
| 72 |
} |
80 |
} |
| 73 |
|
81 |
|
| 74 |
output_html_with_http_headers $cgi, $cookie, $template->output; |
82 |
output_html_with_http_headers $cgi, $cookie, $template->output; |
| 75 |
- |
|
|