Skip to content

Commit 9bf1975

Browse files
committed
fixup! feat(security): Add a bruteforce protection backend base on memcache
1 parent f583a3c commit 9bf1975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Security/Bruteforce/Throttler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function getAttempts(string $ip, string $action = '', float $maxAgeHours
204204
return 0;
205205
}
206206

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

209209
return $this->backend->getAttempts(
210210
$ipAddress->getSubnet(),

0 commit comments

Comments
 (0)