mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-05-03 06:10:18 +02:00
parent
432efcb089
commit
257a9f9d1d
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user