Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-09-06 11:30:27 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-09-07 11:49:49 +0300
commitb2e4f34e2f7b49b5137462580315b5173c6a6afb (patch)
tree18bc4cea55765d5577752f1ec04ab0bb05d21690 /core/Middleware
parent7dece11af05e7a2d41db919a8dee855f77ac915e (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.php5
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')) {