mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
cde56469f7
commit
bf90bd15b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user