summaryrefslogtreecommitdiffstats
path: root/core/register_command.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-08-15 08:27:01 +0200
committerJoas Schilling <coding@schilljs.com>2023-08-21 16:36:05 +0200
commitb2fd283a300d0c5b260d50bbf6ab7574b24dafe9 (patch)
treef33346182c213a756d33dbf33992aeff271a0ddb /core/register_command.php
parentfd9b2d488e6083d6c1027551bb0190e5b7ee7a36 (diff)
downloadnextcloud-server-b2fd283a300d0c5b260d50bbf6ab7574b24dafe9.tar.gz
nextcloud-server-b2fd283a300d0c5b260d50bbf6ab7574b24dafe9.zip
feat(OCC): Add a command to get the bruteforce state of an IP
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/register_command.php')
-rw-r--r--core/register_command.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/register_command.php b/core/register_command.php
index df39ad4484c..c9b6cc99901 100644
--- a/core/register_command.php
+++ b/core/register_command.php
@@ -209,7 +209,8 @@ if (\OC::$server->getConfig()->getSystemValue('installed', false)) {
$application->add(new OC\Core\Command\Security\ListCertificates(\OC::$server->getCertificateManager(), \OC::$server->getL10N('core')));
$application->add(new OC\Core\Command\Security\ImportCertificate(\OC::$server->getCertificateManager()));
$application->add(new OC\Core\Command\Security\RemoveCertificate(\OC::$server->getCertificateManager()));
- $application->add(new OC\Core\Command\Security\ResetBruteforceAttempts(\OC::$server->getBruteForceThrottler()));
+ $application->add(\OC::$server->get(\OC\Core\Command\Security\BruteforceAttempts::class));
+ $application->add(\OC::$server->get(\OC\Core\Command\Security\BruteforceResetAttempts::class));
} else {
$application->add(\OC::$server->get(\OC\Core\Command\Maintenance\Install::class));
}