Browse Source

* LDV::User->create : fixes

master
Alex 'AdUser' Z 10 years ago
parent
commit
749bbec349
  1. 4
      lib/LDV/User.pm

4
lib/LDV/User.pm

@ -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 {

Loading…
Cancel
Save