Handle mobile login flow with direct=1

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan 2022-01-25 14:53:28 +01:00 committed by blizzz (Rebase PR Action)
parent a4da53f7e7
commit 86684d6c54

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();