Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(2fa): Fix 2FA session setup when ephemeral session is used
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen authored and backportbot[bot] committed Aug 26, 2025
commit 7c485aee3e7ff9fdaa023f0f543c830f24c3c48f
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
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 Psr\Log\LoggerInterface;
Expand Down Expand Up @@ -41,7 +42,8 @@ public function beforeController(Controller $controller, string $methodName) {
return;
}

if ($controller instanceof TwoFactorChallengeController) {
if ($controller instanceof TwoFactorChallengeController
|| $controller instanceof ALoginSetupController) {
return;
}

Expand Down
Loading