summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Controller/CheckSetupController.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-11-13 16:24:16 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-11-13 16:26:59 +0100
commitfe8b5d47ae2f7281b5de237943c780d7b8f64c17 (patch)
tree3126afdcda65dbf129560ff988f26e91f2aff1e4 /apps/settings/lib/Controller/CheckSetupController.php
parent749523603403f11c2958a51fb64a7035d9f4eb73 (diff)
downloadnextcloud-server-fe8b5d47ae2f7281b5de237943c780d7b8f64c17.tar.gz
nextcloud-server-fe8b5d47ae2f7281b5de237943c780d7b8f64c17.zip
Migrate Bruteforce Throttle check to SetupCheck API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/settings/lib/Controller/CheckSetupController.php')
-rw-r--r--apps/settings/lib/Controller/CheckSetupController.php7
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php
index 0d5e94dd047..6d74a670a07 100644
--- a/apps/settings/lib/Controller/CheckSetupController.php
+++ b/apps/settings/lib/Controller/CheckSetupController.php
@@ -78,7 +78,6 @@ use OCP\ITempManager;
use OCP\IURLGenerator;
use OCP\Lock\ILockingProvider;
use OCP\Notification\IManager;
-use OCP\Security\Bruteforce\IThrottler;
use OCP\SetupCheck\ISetupCheckManager;
use Psr\Log\LoggerInterface;
@@ -108,8 +107,6 @@ class CheckSetupController extends Controller {
private $iniGetWrapper;
/** @var IDBConnection */
private $connection;
- /** @var IThrottler */
- private $throttler;
/** @var ITempManager */
private $tempManager;
/** @var IManager */
@@ -134,7 +131,6 @@ class CheckSetupController extends Controller {
IDateTimeFormatter $dateTimeFormatter,
IniGetWrapper $iniGetWrapper,
IDBConnection $connection,
- IThrottler $throttler,
ITempManager $tempManager,
IManager $manager,
IAppManager $appManager,
@@ -150,7 +146,6 @@ class CheckSetupController extends Controller {
$this->logger = $logger;
$this->dispatcher = $dispatcher;
$this->db = $db;
- $this->throttler = $throttler;
$this->lockingProvider = $lockingProvider;
$this->dateTimeFormatter = $dateTimeFormatter;
$this->iniGetWrapper = $iniGetWrapper;
@@ -725,8 +720,6 @@ Raw output
'cronInfo' => $this->getLastCronInfo(),
'cronErrors' => $this->getCronErrors(),
'isFairUseOfFreePushService' => $this->isFairUseOfFreePushService(),
- 'isBruteforceThrottled' => $this->throttler->getAttempts($this->request->getRemoteAddress()) !== 0,
- 'bruteforceRemoteAddress' => $this->request->getRemoteAddress(),
'isUsedTlsLibOutdated' => $this->isUsedTlsLibOutdated(),
'forwardedForHeadersWorking' => $this->forwardedForHeadersWorking(),
'reverseProxyDocs' => $this->urlGenerator->linkToDocs('admin-reverse-proxy'),