Skip to content

Commit

Permalink
fixup! feat(security): Add a bruteforce protection backend base on me…
Browse files Browse the repository at this point in the history
…mcache
  • Loading branch information
nickvergessen committed Aug 14, 2023
1 parent f583a3c commit 9bf1975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Security/Bruteforce/Throttler.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function getAttempts(string $ip, string $action = '', float $maxAgeHours
return 0;
}

$maxAgeTimestamp = $this->timeFactory->getTime() - 3600 * $maxAgeHours;
$maxAgeTimestamp = (int) ($this->timeFactory->getTime() - 3600 * $maxAgeHours);

return $this->backend->getAttempts(
$ipAddress->getSubnet(),
Expand Down

0 comments on commit 9bf1975

Please sign in to comment.