mirror of
https://github.com/nextcloud/server.git
synced 2026-05-26 11:22:28 -04:00
Merge pull request #54660 from nextcloud/backport/54605/stable28
[stable28] fix(2fa): Fix 2FA session setup when ephemeral session is used
This commit is contained in:
commit
a44fe8ffa4
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