summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-10-29 21:35:06 +0100
committerYorhel <git@yorhel.nl>2009-10-29 21:35:06 +0100
commit20eec6644cf02e7d58b9732c28c3d87dc15ae07c (patch)
tree95b1bb51cc0e0c9c978696b65d2acfcf07d1c59a
parent19c97a6f85da62a1c0e17002ccb8016721433595 (diff)
Handler::Users: Fixed password recovery email sending bug
dbUserGet() doesn't return the email address by default anymore.
-rw-r--r--lib/VNDB/Handler/Users.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm
index 39aecbfc..bf89b32d 100644
--- a/lib/VNDB/Handler/Users.pm
+++ b/lib/VNDB/Handler/Users.pm
@@ -178,7 +178,7 @@ sub newpass {
($o{passwd}, $o{salt}) = $self->authPreparePass($pass);
$self->dbUserEdit($u->{id}, %o);
$self->mail(mt('_newpass_mail_body', $u->{username}, $pass),
- To => $u->{mail},
+ To => $frm->{mail},
From => 'VNDB <noreply@vndb.org>',
Subject => mt('_newpass_mail_subject', $u->{username}),
);