| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Ratelimiter needs adjustment - see individual review comments.
Sorry, something went wrong.
There was a problem hiding this comment.
Just a few nits; looking in good shape otherwise!
Sorry, something went wrong.
Before, we weren't checking if a login was successful before counting it against the rate limiter. With this change, we only count unsuccessful logins against the rate limiter. We did this because this was a bug but also because it caused problems with our e2e tests hitting the rate limit.
This changes adds a new method called `.canTry` to the rate limiter to check if there are tokens remaining in the bucket. It also adds suggestions from @oxy to make sure the user can brute force past the rate limiter.
I've made the requested changed and Asher has approved.
There was a problem hiding this comment.
All looks good!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR fixes the login rate limiter to not count successful logins. This is important because it was causing issues with the e2e tests hitting the rate limit even though the logins were successful.
Changes
Fixes #2647