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
1 changed files with 2 additions and 1 deletions

View File

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