mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Make login form work without any theme loaded. (from r98432)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102656 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
56fc2d579f
commit
9c0c2cad7a
@ -394,7 +394,7 @@ class Security extends Controller {
|
|||||||
Session::clear('Security.Message');
|
Session::clear('Security.Message');
|
||||||
|
|
||||||
// custom processing
|
// custom processing
|
||||||
return $customisedController->renderWith(array('Security_login', 'Security', $this->stat('template_main')));
|
return $customisedController->renderWith(array('Security_login', 'Security', $this->stat('template_main'), 'ContentController'));
|
||||||
}
|
}
|
||||||
|
|
||||||
function basicauthlogin() {
|
function basicauthlogin() {
|
||||||
@ -431,7 +431,7 @@ class Security extends Controller {
|
|||||||
));
|
));
|
||||||
|
|
||||||
//Controller::$currentController = $controller;
|
//Controller::$currentController = $controller;
|
||||||
return $customisedController->renderWith(array('Security_lostpassword', 'Security', $this->stat('template_main')));
|
return $customisedController->renderWith(array('Security_lostpassword', 'Security', $this->stat('template_main'), 'ContentController'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -489,7 +489,7 @@ class Security extends Controller {
|
|||||||
));
|
));
|
||||||
|
|
||||||
//Controller::$currentController = $controller;
|
//Controller::$currentController = $controller;
|
||||||
return $customisedController->renderWith(array('Security_passwordsent', 'Security', $this->stat('template_main')));
|
return $customisedController->renderWith(array('Security_passwordsent', 'Security', $this->stat('template_main'), 'ContentController'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -559,7 +559,7 @@ class Security extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Controller::$currentController = $controller;
|
//Controller::$currentController = $controller;
|
||||||
return $customisedController->renderWith(array('Security_changepassword', 'Security', $this->stat('template_main')));
|
return $customisedController->renderWith(array('Security_changepassword', 'Security', $this->stat('template_main'), 'ContentController'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<h1>$Title</h1>
|
<h1>$Title</h1>
|
||||||
$Content
|
$Content
|
||||||
|
$Form
|
||||||
|
|
||||||
<p><i>Generated with the default ContentController.ss template</i></p>
|
<p><i>Generated with the default ContentController.ss template</i></p>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user