diff --git a/lib/private/Security/Bruteforce/Throttler.php b/lib/private/Security/Bruteforce/Throttler.php index ef870f4b99a15a9ed2ab5ab61e8cd62e9ed846c6..b490c6a4012c2e7bd8a029ebf85db29e36dd83ab 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();