Skip to content

Conversation

dcro
Copy link
Contributor

@dcro dcro commented Sep 5, 2017

When using a time period longer than 1 minute for the auth login throttler, the rate limiter will only remember hits for 1 minute (the default from RateLimiter::hit()), instead of the actual decay minutes value specified in the login controller (the one from ThrottlesLogins).

This pull request also passes the custom decayMinutes value to the rate limiter to ensure hits are remembered correctly in the cache.

@taylorotwell taylorotwell merged commit bd17cb2 into laravel:5.5 Sep 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants