Skip to content

Commit 3609457

Browse files
Merge pull request #54657 from nextcloud/backport/54605/stable25
[stable25] fix(2fa): Fix 2FA session setup when ephemeral session is used
2 parents a8ea38e + aa118bc commit 3609457

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

@@ -43,7 +44,8 @@ public function beforeController($controller, $methodName) {
4344
return;
4445
}
4546

46-
if ($controller instanceof TwoFactorChallengeController) {
47+
if ($controller instanceof TwoFactorChallengeController
48+
|| $controller instanceof ALoginSetupController) {
4749
return;
4850
}
4951

0 commit comments

Comments
 (0)