Made selection of custom security templates easier

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70860 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-01-28 04:45:34 +00:00
parent 2ebd545f77
commit 1016e189a3

View File

@ -348,11 +348,7 @@ class Security extends Controller {
Session::clear('Security.Message');
// custom processing
if(SSViewer::hasTemplate("Security_login")) {
return $customisedController->renderWith(array("Security_login", $this->stat('template_main')));
} else {
return $customisedController->renderWith($this->stat('template_main'));
}
return $customisedController->renderWith(array('Security_login', 'Security', $this->stat('template_main')));
}
function basicauthlogin() {
@ -390,7 +386,7 @@ class Security extends Controller {
));
//Controller::$currentController = $controller;
return $customisedController->renderWith($this->stat('template_main'));
return $customisedController->renderWith(array('Security_lostpassword', 'Security', $this->stat('template_main')));
}
@ -448,7 +444,7 @@ class Security extends Controller {
));
//Controller::$currentController = $controller;
return $customisedController->renderWith($this->stat('template_main'));
return $customisedController->renderWith(array('Security_passwordsent', 'Security', $this->stat('template_main')));
}
@ -517,7 +513,7 @@ class Security extends Controller {
}
//Controller::$currentController = $controller;
return $customisedController->renderWith($this->stat('template_main'));
return $customisedController->renderWith(array('Security_changepassword', 'Security', $this->stat('template_main')));
}
/**