diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-03 08:33:05 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-08-19 11:20:36 +0200 |
commit | 931aca2fee00d6bf55273512212bb21a0300b03e (patch) | |
tree | f4979fec986f5df05dfe3d22e496b8dc68be3fe8 /lib/private/Security/Bruteforce/Throttler.php | |
parent | d9c4c9eb99943d642034ac88c11e399d5461f13a (diff) | |
download | nextcloud-server-931aca2fee00d6bf55273512212bb21a0300b03e.tar.gz nextcloud-server-931aca2fee00d6bf55273512212bb21a0300b03e.zip |
Add missing default
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Security/Bruteforce/Throttler.php')
-rw-r--r-- | lib/private/Security/Bruteforce/Throttler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Security/Bruteforce/Throttler.php b/lib/private/Security/Bruteforce/Throttler.php index ef870f4b99a..b490c6a4012 100644 --- a/lib/private/Security/Bruteforce/Throttler.php +++ b/lib/private/Security/Bruteforce/Throttler.php @@ -99,7 +99,7 @@ class Throttler { * @param float $maxAgeHours * @return int */ - private function getCutoffTimestamp(float $maxAgeHours): int { + private function getCutoffTimestamp(float $maxAgeHours = 12.0): int { return (new \DateTime()) ->sub($this->getCutoff((int) ($maxAgeHours * 3600))) ->getTimestamp(); |