fix; resetting password used to send email to logged in user (typically admin), now to the user whose password is resetted

This commit is contained in:
Rob Vermaas 2012-01-28 07:14:40 +01:00
parent 1840a842d3
commit 01f07be8f2

View file

@ -154,7 +154,7 @@ sub reset_password : Chained('user') PathPart('reset-password') Args(0) {
# send email # send email
sendemail( sendemail(
$c->user->emailaddress, $c->stash->{user}->emailaddress,
"New password for Hydra", "New password for Hydra",
"Hi,\n\n". "Hi,\n\n".
"Your password has been reset. Your new password is '$password'.\n". "Your password has been reset. Your new password is '$password'.\n".