From 3e48714f939939b40414a37aede3baabdbc117ad Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Fri, 24 Oct 2008 02:23:53 +0000 Subject: [PATCH] BUGFIX Security->passwordsent() didn't get the "Email" variable from the URL properly, because of updates to HTTPRequest git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64739 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Security.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/security/Security.php b/security/Security.php index 45db836cf..a375c738f 100644 --- a/security/Security.php +++ b/security/Security.php @@ -419,8 +419,10 @@ class Security extends Controller { /** - * Show the "password sent" page + * Show the "password sent" page, after a user has requested + * to reset their password. * + * @param HTTPRequest $request The HTTPRequest for this action. * @return string Returns the "password sent" page as HTML code. */ public function passwordsent($request) { @@ -436,7 +438,8 @@ class Security extends Controller { $controller = new Page_Controller($tmpPage); $controller->init(); - $email = Convert::raw2xml($request->getVar('email')); + $email = Convert::raw2xml($request->param('ID')); + $customisedController = $controller->customise(array( 'Title' => sprintf(_t('Security.PASSWORDSENTHEADER', "Password reset link sent to '%s'"), $email), 'Content' =>