Fix login redirects when AutologinBackend is used

This commit is contained in:
Matthias Jentsch 2014-09-30 15:49:31 +02:00
parent e6c674e221
commit 9a57ddcfa6
1 changed files with 3 additions and 1 deletions

View File

@ -124,7 +124,9 @@ class AuthenticationController extends ActionController
$authenticated = $backend->authenticate($user);
if ($authenticated === true) {
$auth->setAuthenticated($user);
$this->rerenderLayout()->redirectNow($redirectUrl);
$this->rerenderLayout()->redirectNow(
Url::fromPath(Url::fromRequest()->getParam('redirect', 'dashboard'))
);
}
}
}