Skip to content

Commit b24c4f0

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 3e5c5e2 commit b24c4f0

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)