Keep direct login active when redirecting
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
9bb3212433
commit
e7c07e722b
|
@ -337,7 +337,7 @@ class LoginController extends Controller {
|
||||||
$user, $originalUser, $redirect_url, string $loginMessage) {
|
$user, $originalUser, $redirect_url, string $loginMessage) {
|
||||||
// Read current user and append if possible we need to
|
// Read current user and append if possible we need to
|
||||||
// return the unmodified user otherwise we will leak the login name
|
// return the unmodified user otherwise we will leak the login name
|
||||||
$args = $user !== null ? ['user' => $originalUser] : [];
|
$args = $user !== null ? ['user' => $originalUser, 'direct' => 1] : [];
|
||||||
if ($redirect_url !== null) {
|
if ($redirect_url !== null) {
|
||||||
$args['redirect_url'] = $redirect_url;
|
$args['redirect_url'] = $redirect_url;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue