summaryrefslogtreecommitdiffstats
path: root/core/Middleware/TwoFactorMiddleware.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-09-06 08:30:27 +0000
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-09-07 08:47:17 +0000
commit2e1f7a81615babbd7098c533ac0229c054b3e36b (patch)
tree7e7a80ffad3bf2557bae4b36c62b195d858a2e5b /core/Middleware/TwoFactorMiddleware.php
parent4b00f5d6e92b548958271cace5e946774e172355 (diff)
downloadnextcloud-server-2e1f7a81615babbd7098c533ac0229c054b3e36b.tar.gz
nextcloud-server-2e1f7a81615babbd7098c533ac0229c054b3e36b.zip
Remove 2FA exemption from PublicPage annotation
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'core/Middleware/TwoFactorMiddleware.php')
-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')) {