Skip to content

Commit 11aa997

Browse files
committed
fix(2fa): Fix 2FA session setup when ephemeral session is used
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 1b05582 commit 11aa997

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/private/AppFramework/Middleware/FlowV2EphemeralSessionsMiddleware.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use OCP\AppFramework\Controller;
1414
use OCP\AppFramework\Http\Attribute\PublicPage;
1515
use OCP\AppFramework\Middleware;
16+
use OCP\Authentication\TwoFactorAuth\ALoginSetupController;
1617
use OCP\ISession;
1718
use OCP\IUserSession;
1819
use Psr\Log\LoggerInterface;
@@ -41,7 +42,8 @@ public function beforeController(Controller $controller, string $methodName) {
4142
return;
4243
}
4344

44-
if ($controller instanceof TwoFactorChallengeController) {
45+
if ($controller instanceof TwoFactorChallengeController
46+
|| $controller instanceof ALoginSetupController) {
4547
return;
4648
}
4749

0 commit comments

Comments
 (0)