From 01f07be8f2da0173ca39d974e4fb5e2e490b419e Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sat, 28 Jan 2012 07:14:40 +0100 Subject: [PATCH] fix; resetting password used to send email to logged in user (typically admin), now to the user whose password is resetted --- src/lib/Hydra/Controller/Admin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Admin.pm b/src/lib/Hydra/Controller/Admin.pm index 02d0f9bc..489c6c2c 100644 --- a/src/lib/Hydra/Controller/Admin.pm +++ b/src/lib/Hydra/Controller/Admin.pm @@ -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".