Skip to content

Commit 36c3162

Browse files
Valentinfabpot
authored andcommitted
[RateLimiter] Return Limit object on Consume method
1 parent 50c6810 commit 36c3162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EventListener/LoginThrottlingListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function checkPassport(CheckPassportEvent $event): void
4848
$limiterKey = $this->createLimiterKey($username, $request);
4949

5050
$limiter = $this->limiter->create($limiterKey);
51-
if (!$limiter->consume()) {
51+
if (!$limiter->consume()->isAccepted()) {
5252
throw new TooManyLoginAttemptsAuthenticationException();
5353
}
5454
}

0 commit comments

Comments
 (0)