|
|
@ -77,9 +77,9 @@ sub create { |
|
|
|
die("$error") if $error; |
|
|
|
die("$error") if $error; |
|
|
|
|
|
|
|
|
|
|
|
if ($self->app->{user}->{confirm_register}) { |
|
|
|
if ($self->app->{user}->{confirm_register}) { |
|
|
|
my $body = $self->render_partial(template => 'email/reg_success', format => 'txt') |
|
|
|
my $body = $self->render_partial(template => 'email/reg_success', format => 'txt'); |
|
|
|
my $email = $self->app->email->create($mail, $self->l("Registration"), $body); |
|
|
|
my $email = $self->app->email->create($mail, $self->l("Registration"), $body); |
|
|
|
$error = $self->app->email->send($to, $email); |
|
|
|
$error = $self->app->email->send($mail, $email); |
|
|
|
die("$error") if $error; |
|
|
|
die("$error") if $error; |
|
|
|
# TODO: generate and store recover code |
|
|
|
# TODO: generate and store recover code |
|
|
|
} else { |
|
|
|
} else { |
|
|
|