mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-15 18:04:26 +02:00
Fix login redirects when AutologinBackend is used
This commit is contained in:
parent
e6c674e221
commit
9a57ddcfa6
@ -124,7 +124,9 @@ class AuthenticationController extends ActionController
|
|||||||
$authenticated = $backend->authenticate($user);
|
$authenticated = $backend->authenticate($user);
|
||||||
if ($authenticated === true) {
|
if ($authenticated === true) {
|
||||||
$auth->setAuthenticated($user);
|
$auth->setAuthenticated($user);
|
||||||
$this->rerenderLayout()->redirectNow($redirectUrl);
|
$this->rerenderLayout()->redirectNow(
|
||||||
|
Url::fromPath(Url::fromRequest()->getParam('redirect', 'dashboard'))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user