mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(2fa): Fix 2FA session setup when ephemeral session is used
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
3e5c5e2426
commit
b24c4f02e8
1 changed files with 3 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ use OC\AppFramework\Utility\ControllerMethodReflector;
|
|||
use OC\Core\Controller\ClientFlowLoginV2Controller;
|
||||
use OC\Core\Controller\TwoFactorChallengeController;
|
||||
use OCP\AppFramework\Middleware;
|
||||
use OCP\Authentication\TwoFactorAuth\ALoginSetupController;
|
||||
use OCP\ISession;
|
||||
use OCP\IUserSession;
|
||||
|
||||
|
|
@ -36,7 +37,8 @@ class FlowV2EphemeralSessionsMiddleware extends Middleware {
|
|||
return;
|
||||
}
|
||||
|
||||
if ($controller instanceof TwoFactorChallengeController) {
|
||||
if ($controller instanceof TwoFactorChallengeController
|
||||
|| $controller instanceof ALoginSetupController) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue