Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.5] Auth login throttling fails when decay minutes is more than 1 minute #20997

Merged
merged 1 commit into from
Sep 5, 2017

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