diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2021-09-06 11:30:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-06 11:30:54 +0300 |
commit | 7c1038bfb390c150f08937f62ff9a5c43bf9ebde (patch) | |
tree | 26a44bce859d154ec0f005a9a9349cff3920d725 /core/Middleware | |
parent | 33a0b75c83a1c56fa84b98d3a07a26b5c4932b65 (diff) |
Remove 2FA exemption from PublicPage annotation
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'core/Middleware')
-rw-r--r-- | core/Middleware/TwoFactorMiddleware.php | 5 |
1 files changed, 0 insertions, 5 deletions
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')) { |