summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Berezovsky <xpnf@yandex.ru>2018-06-15 04:58:08 +0300
committerBackportbot <backportbot-noreply@rullzer.com>2019-02-15 12:32:39 +0000
commit56038b95b0b48da4ed2258ac1ece9d4901011cac (patch)
tree1ec2ac55fcc9080e33d94e17e166b441b1dbdb47
parent61f20e819ae71a7d92e659d8fefa6cf5e3670247 (diff)
downloadnextcloud-server-56038b95b0b48da4ed2258ac1ece9d4901011cac.tar.gz
nextcloud-server-56038b95b0b48da4ed2258ac1ece9d4901011cac.zip
Fix #9864: Decrease $maxDelay in Throttler.php
Signed-off-by: Mark Berezovsky <xpnf@yandex.ru>
-rw-r--r--lib/private/Security/Bruteforce/Throttler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Security/Bruteforce/Throttler.php b/lib/private/Security/Bruteforce/Throttler.php
index f08b721d143..3282121d967 100644
--- a/lib/private/Security/Bruteforce/Throttler.php
+++ b/lib/private/Security/Bruteforce/Throttler.php
@@ -228,7 +228,7 @@ class Throttler {
return 0;
}
- $maxDelay = 30;
+ $maxDelay = 25;
$firstDelay = 0.1;
if ($attempts > (8 * PHP_INT_SIZE - 1)) {
// Don't ever overflow. Just assume the maxDelay time:s