From bf90bd15b0cbdaf9df964f98bab1a0538b1ed376 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 6 Nov 2007 05:23:00 +0000 Subject: [PATCH] ENHANCEMENT: call Page_Controller->init() when rendering /Security/changepassword etc to respect any Requirements called in there (thanks rhalff!) see http://open.silverstripe.com/ticket/1595 git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44361 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Security.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/security/Security.php b/security/Security.php index 2b90a8185..23f19849e 100644 --- a/security/Security.php +++ b/security/Security.php @@ -327,6 +327,7 @@ class Security extends Controller { $tmpPage->Title = _t('Security.LOSTPASSWORDHEADER', 'Lost Password'); $tmpPage->URLSegment = 'Security'; $controller = new Page_Controller($tmpPage); + $controller->init(); $customisedController = $controller->customise(array( 'Content' => @@ -376,6 +377,7 @@ class Security extends Controller { $tmpPage->Title = _t('Security.LOSTPASSWORDHEADER'); $tmpPage->URLSegment = 'Security'; $controller = new Page_Controller($tmpPage); + $controller->init(); $email = Convert::raw2xml($this->urlParams['ID']); $customisedController = $controller->customise(array( @@ -411,6 +413,7 @@ class Security extends Controller { $tmpPage->Title = _t('Security.CHANGEPASSWORDHEADER', 'Change your password'); $tmpPage->URLSegment = 'Security'; $controller = new Page_Controller($tmpPage); + $controller->init(); if(isset($_REQUEST['h']) && Member::autoLoginHash($_REQUEST['h'])) { // The auto login hash is valid, store it for the change password form