From 749bbec349629275227a2eca5a23e7036b107049 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Tue, 10 Feb 2015 16:37:47 +1000 Subject: [PATCH] * LDV::User->create : fixes --- lib/LDV/User.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/LDV/User.pm b/lib/LDV/User.pm index d8c11ec..8175acd 100644 --- a/lib/LDV/User.pm +++ b/lib/LDV/User.pm @@ -77,9 +77,9 @@ sub create { die("$error") if $error; 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); - $error = $self->app->email->send($to, $email); + $error = $self->app->email->send($mail, $email); die("$error") if $error; # TODO: generate and store recover code } else {