Skip to content

Commit 845c5d1

Browse files
Merge pull request #54658 from nextcloud/backport/54605/stable26
[stable26] fix(2fa): Fix 2FA session setup when ephemeral session is used
2 parents e5dcc75 + b24c4f0 commit 845c5d1

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
@@ -11,6 +11,7 @@
1111
use OC\Core\Controller\ClientFlowLoginV2Controller;
1212
use OC\Core\Controller\TwoFactorChallengeController;
1313
use OCP\AppFramework\Middleware;
14+
use OCP\Authentication\TwoFactorAuth\ALoginSetupController;
1415
use OCP\ISession;
1516
use OCP\IUserSession;
1617

@@ -36,7 +37,8 @@ public function beforeController($controller, $methodName) {
3637
return;
3738
}
3839

39-
if ($controller instanceof TwoFactorChallengeController) {
40+
if ($controller instanceof TwoFactorChallengeController
41+
|| $controller instanceof ALoginSetupController) {
4042
return;
4143
}
4244

0 commit comments

Comments
 (0)