aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-10-30 14:26:50 +0100
committerGitHub <noreply@github.com>2018-10-30 14:26:50 +0100
commitc1698948b8cf47924978578335a5a4e8c767682c (patch)
tree261e582f9b52adc8b4a218b942696c42c97c4df9 /lib
parent8b2b238d86f9a1e1846328317f0c0b1cb6c86357 (diff)
parent75456b057d58f321b6b46bd4f5899aba8e13fb02 (diff)
downloadnextcloud-server-c1698948b8cf47924978578335a5a4e8c767682c.tar.gz
nextcloud-server-c1698948b8cf47924978578335a5a4e8c767682c.zip
Merge pull request #12130 from nextcloud/fix/reset_bruteforce_oauth
Reset bruteforce on token refresh OAuth
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Server.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 32d7705919c..b40fd9f72bd 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -758,7 +758,7 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerService('TrustedDomainHelper', function ($c) {
return new TrustedDomainHelper($this->getConfig());
});
- $this->registerService('Throttler', function (Server $c) {
+ $this->registerService(Throttler::class, function (Server $c) {
return new Throttler(
$c->getDatabaseConnection(),
new TimeFactory(),
@@ -766,6 +766,7 @@ class Server extends ServerContainer implements IServerContainer {
$c->getConfig()
);
});
+ $this->registerAlias('Throttler', Throttler::class);
$this->registerService('IntegrityCodeChecker', function (Server $c) {
// IConfig and IAppManager requires a working database. This code
// might however be called when ownCloud is not yet setup.