Merge pull request #54605 from nextcloud/bugfix/noid/fix-2fa-setup-during-ephemeral-session

fix(2fa): Fix 2FA session setup when ephemeral session is used
carl/port-away-execute-core
Joas Schilling 2025-08-26 15:45:15 +07:00 committed by GitHub
commit c9712b4953
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

@ -13,6 +13,7 @@ use OC\Core\Controller\TwoFactorChallengeController;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\PublicPage;
use OCP\AppFramework\Middleware;
use OCP\Authentication\TwoFactorAuth\ALoginSetupController;
use OCP\ISession;
use OCP\IUserSession;
use Psr\Log\LoggerInterface;
@ -41,7 +42,8 @@ class FlowV2EphemeralSessionsMiddleware extends Middleware {
return;
}
if ($controller instanceof TwoFactorChallengeController) {
if ($controller instanceof TwoFactorChallengeController
|| $controller instanceof ALoginSetupController) {
return;
}