mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Remove 2FA exemption from PublicPage annotation
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
7dece11af0
commit
b2e4f34e2f
1 changed files with 0 additions and 5 deletions
|
|
@ -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')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue