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
sendemail(
$c->user->emailaddress,
$c->stash->{user}->emailaddress,
"New password for Hydra",
"Hi,\n\n".
"Your password has been reset. Your new password is '$password'.\n".