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
committerGitHub <noreply@github.com>2021-09-06 11:30:54 +0300
commit7c1038bfb390c150f08937f62ff9a5c43bf9ebde (patch)
tree26a44bce859d154ec0f005a9a9349cff3920d725 /core/Middleware
parent33a0b75c83a1c56fa84b98d3a07a26b5c4932b65 (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 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')) {