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
This commit is contained in:
Sean Harvey 2008-10-24 02:23:53 +00:00
parent ffbd526bbb
commit 3e48714f93

View File

@ -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' =>