diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2021-09-06 08:30:27 +0000 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-09-07 08:49:49 +0000 |
commit | b2e4f34e2f7b49b5137462580315b5173c6a6afb (patch) | |
tree | 18bc4cea55765d5577752f1ec04ab0bb05d21690 /core/Middleware | |
parent | 7dece11af05e7a2d41db919a8dee855f77ac915e (diff) | |
download | nextcloud-server-b2e4f34e2f7b49b5137462580315b5173c6a6afb.tar.gz nextcloud-server-b2e4f34e2f7b49b5137462580315b5173c6a6afb.zip |
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 c934efbb930..d5a8a2f877a 100644 --- a/core/Middleware/TwoFactorMiddleware.php +++ b/core/Middleware/TwoFactorMiddleware.php @@ -83,11 +83,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')) { |