mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
2ebd545f77
commit
1016e189a3
@ -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')));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user