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…
Reference in New Issue