Skip to content

Commit aa118bc

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
fix(2fa): Fix 2FA session setup when ephemeral session is used
Signed-off-by: Joas Schilling <[email protected]>
1 parent 63057ba commit aa118bc

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)