diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-03-29 18:21:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 18:21:40 +0200 |
commit | 576e4e8f2a0aebf31d38d59cb7d9c9839e8e253b (patch) | |
tree | eae7870a33d16d486b4535d279565288e3cdc02f /lib/private/AppFramework | |
parent | 9191ca43cebe7889360cbe65f357719fc41f937d (diff) | |
parent | 80388663afa718a884e63de653e0cba545c7403f (diff) | |
download | nextcloud-server-576e4e8f2a0aebf31d38d59cb7d9c9839e8e253b.tar.gz nextcloud-server-576e4e8f2a0aebf31d38d59cb7d9c9839e8e253b.zip |
Merge pull request #31592 from nextcloud/fix/direct-arg-flow-v2
Add direct arg to login flow
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r-- | lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php index fffeffd4feb..e0f36231b68 100644 --- a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php +++ b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php @@ -264,6 +264,9 @@ class SecurityMiddleware extends Middleware { if ($usernamePrefill !== '') { $params['user'] = $usernamePrefill; } + if ($this->request->getParam('direct')) { + $params['direct'] = 1; + } $url = $this->urlGenerator->linkToRoute('core.login.showLoginForm', $params); $response = new RedirectResponse($url); } else { |