Skip to content

Commit ed68546

Browse files
committed
Revert "Explicitly allow some routes without 2FA"
This reverts commit bcfd4ed.
1 parent bcfd4ed commit ed68546

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

core/Controller/OCJSController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ public function __construct($appName,
9898

9999
/**
100100
* @NoCSRFRequired
101-
* @NoTwoFactorRequired
102101
* @PublicPage
103102
*
104103
* @return DataDisplayResponse

core/Middleware/TwoFactorMiddleware.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,6 @@ public function __construct(Manager $twoFactorManager, Session $userSession, ISe
8383
* @param string $methodName
8484
*/
8585
public function beforeController($controller, $methodName) {
86-
if ($this->reflector->hasAnnotation('NoTwoFactorRequired')) {
87-
// Route handler explicitly marked to work without finished 2FA are
88-
// not blocked
89-
return;
90-
}
91-
9286
if ($controller instanceof APIController && $methodName === 'poll') {
9387
// Allow polling the twofactor nextcloud notifications state
9488
return;

0 commit comments

Comments
 (0)