Merge pull request #54658 from nextcloud/backport/54605/stable26

[stable26] fix(2fa): Fix 2FA session setup when ephemeral session is used
This commit is contained in:
Joas Schilling 2025-08-27 07:34:53 +02:00 committed by GitHub
commit 845c5d126d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,7 @@ use OC\AppFramework\Utility\ControllerMethodReflector;
use OC\Core\Controller\ClientFlowLoginV2Controller;
use OC\Core\Controller\TwoFactorChallengeController;
use OCP\AppFramework\Middleware;
use OCP\Authentication\TwoFactorAuth\ALoginSetupController;
use OCP\ISession;
use OCP\IUserSession;
@ -36,7 +37,8 @@ class FlowV2EphemeralSessionsMiddleware extends Middleware {
return;
}
if ($controller instanceof TwoFactorChallengeController) {
if ($controller instanceof TwoFactorChallengeController
|| $controller instanceof ALoginSetupController) {
return;
}