Skip to content

Commit cfb076b

Browse files
committed
Make the DB query simpler (as we just deleted all other entries)
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 113f226 commit cfb076b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/private/Security/RateLimiting/Backend/DatabaseBackend.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ private function getExistingAttemptCount(
8282
->from(self::TABLE_NAME)
8383
->where(
8484
$qb->expr()->eq('hash', $qb->createNamedParameter($identifier, IQueryBuilder::PARAM_STR))
85-
)
86-
->andWhere(
87-
$qb->expr()->gte('delete_after', $qb->createNamedParameter($currentTime, IQueryBuilder::PARAM_DATE))
8885
);
8986

9087
$cursor = $qb->executeQuery();

0 commit comments

Comments
 (0)