mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -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
994551bae2
commit
fd801be2a4
1 changed files with 3 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ use OC\Core\Controller\TwoFactorChallengeController;
|
|||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http\Attribute\PublicPage;
|
||||
use OCP\AppFramework\Middleware;
|
||||
use OCP\Authentication\TwoFactorAuth\ALoginSetupController;
|
||||
use OCP\ISession;
|
||||
use OCP\IUserSession;
|
||||
use ReflectionMethod;
|
||||
|
|
@ -39,7 +40,8 @@ class FlowV2EphemeralSessionsMiddleware extends Middleware {
|
|||
return;
|
||||
}
|
||||
|
||||
if ($controller instanceof TwoFactorChallengeController) {
|
||||
if ($controller instanceof TwoFactorChallengeController
|
||||
|| $controller instanceof ALoginSetupController) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue