From 2e1f7a81615babbd7098c533ac0229c054b3e36b Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 6 Sep 2021 08:30:27 +0000 Subject: Remove 2FA exemption from PublicPage annotation Signed-off-by: Lukas Reschke --- core/Middleware/TwoFactorMiddleware.php | 5 ----- 1 file changed, 5 deletions(-) (limited to 'core/Middleware') diff --git a/core/Middleware/TwoFactorMiddleware.php b/core/Middleware/TwoFactorMiddleware.php index 398234fa1e4..2ddfcafa027 100644 --- a/core/Middleware/TwoFactorMiddleware.php +++ b/core/Middleware/TwoFactorMiddleware.php @@ -82,11 +82,6 @@ class TwoFactorMiddleware extends Middleware { * @param string $methodName */ public function beforeController($controller, $methodName) { - if ($this->reflector->hasAnnotation('PublicPage')) { - // Don't block public pages - return; - } - if ($controller instanceof TwoFactorChallengeController && $this->userSession->getUser() !== null && !$this->reflector->hasAnnotation('TwoFactorSetUpDoneRequired')) { -- cgit v1.2.3