diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2021-09-07 10:44:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-07 10:44:34 +0200 |
commit | c21a721fc16a815fc4fe61423dccae4f22a6c894 (patch) | |
tree | c3cc82dea0dc9e6d6e05b859c61c530d17872852 /core | |
parent | b79f1eb6aed3e1cef057e07d0388de237e415a35 (diff) | |
parent | 8da6a9bea9d4965ab6617b362ba9195f1c3fd5d4 (diff) | |
download | nextcloud-server-c21a721fc16a815fc4fe61423dccae4f22a6c894.tar.gz nextcloud-server-c21a721fc16a815fc4fe61423dccae4f22a6c894.zip |
Merge pull request #28725 from nextcloud/disallow-public-page-in-2fa-flow
Remove 2FA exemption from PublicPage annotation
Diffstat (limited to 'core')
-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')) { |