diff options
author | Joas Schilling <coding@schilljs.com> | 2023-08-15 08:27:01 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-08-21 16:36:05 +0200 |
commit | b2fd283a300d0c5b260d50bbf6ab7574b24dafe9 (patch) | |
tree | f33346182c213a756d33dbf33992aeff271a0ddb /core/register_command.php | |
parent | fd9b2d488e6083d6c1027551bb0190e5b7ee7a36 (diff) | |
download | nextcloud-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.php | 3 |
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)); } |