Merge pull request #578 from nextcloud/feat/handle/login/flow

Handle mobile login flow with direct=1
This commit is contained in:
blizzz 2022-01-25 17:11:21 +01:00 committed by GitHub
commit 58ab33366d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,9 @@ if ($user !== null) {
// redirected to the SAML login endpoint
if (!$cli &&
!$userSession->isLoggedIn() &&
\OC::$server->getRequest()->getPathInfo() === '/login' &&
(\OC::$server->getRequest()->getPathInfo() === '/login'
|| \OC::$server->getRequest()->getPathInfo() === '/login/v2/flow'
|| \OC::$server->getRequest()->getPathInfo() === '/login/flow') &&
$type !== '') {
try {
$params = $request->getParams();