summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-07-12 21:46:25 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-07-13 11:23:08 +0200
commit6a1f2ac0764cec5ceaeedc51bfe93ad6a81f0071 (patch)
tree6d4f17b078b10c5c11f07a83fd84311a03bc1ea8 /lib/private/Server.php
parent598835b06fdd12a46253a44729eb602bc170b76b (diff)
downloadnextcloud-server-6a1f2ac0764cec5ceaeedc51bfe93ad6a81f0071.tar.gz
nextcloud-server-6a1f2ac0764cec5ceaeedc51bfe93ad6a81f0071.zip
Add bruteforce capabilities
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index f8fd63a9d5d..be432c0cf28 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -836,6 +836,9 @@ class Server extends ServerContainer implements IServerContainer {
$manager->registerCapability(function () use ($c) {
return new \OC\OCS\CoreCapabilities($c->getConfig());
});
+ $manager->registerCapability(function () use ($c) {
+ return $c->query(\OC\Security\Bruteforce\Capabilities::class);
+ });
return $manager;
});
$this->registerAlias('CapabilitiesManager', \OC\CapabilitiesManager::class);