Set Response::rerenderLayout() in the LoginForm

refs #9660
This commit is contained in:
Eric Lippmann 2015-07-29 15:09:29 +02:00
parent 432efcb089
commit 257a9f9d1d

View File

@ -91,6 +91,7 @@ class LoginForm extends Form
$authenticated = $authChain->authenticate($user, $password); $authenticated = $authChain->authenticate($user, $password);
if ($authenticated) { if ($authenticated) {
$auth->setAuthenticated($user); $auth->setAuthenticated($user);
$this->getResponse()->setRerenderLayout(true);
return true; return true;
} }
switch ($authChain->getError()) { switch ($authChain->getError()) {
@ -131,7 +132,7 @@ class LoginForm extends Form
if ($backend instanceof ExternalBackend) { if ($backend instanceof ExternalBackend) {
if ($backend->authenticate($user)) { if ($backend->authenticate($user)) {
$auth->setAuthenticated($user); $auth->setAuthenticated($user);
$this->getResponse()->redirectAndExit($this->getRedirectUrl()); $this->getResponse()->setRerenderLayout(true)->redirectAndExit($this->getRedirectUrl());
} }
} else { } else {
$onlyExternal = false; $onlyExternal = false;