]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add missing default
authorJoas Schilling <coding@schilljs.com>
Wed, 3 Jun 2020 06:33:05 +0000 (08:33 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 19 Aug 2020 09:20:36 +0000 (11:20 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Security/Bruteforce/Throttler.php

index ef870f4b99a15a9ed2ab5ab61e8cd62e9ed846c6..b490c6a4012c2e7bd8a029ebf85db29e36dd83ab 100644 (file)
@@ -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();