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

Exponential wait before retrying to login again #5754

Open
zedtux opened this issue Jan 8, 2025 · 0 comments
Open

Exponential wait before retrying to login again #5754

zedtux opened this issue Jan 8, 2025 · 0 comments

Comments

@zedtux
Copy link
Contributor

zedtux commented Jan 8, 2025

One way to mitigate brute force attacks is to exponentially add a delay before a user can retry to login again, which is not supported by this gem so far.

There should be a configurable option which allow one to tell:

  • how many requests can be performed without any wait delay (example: the 5 first attempts are free of any delay for retry, which will avoid to annoy most of the users)
  • linear or exponential factor to calculate the delay, or a method that would allow one to customize the delay

A flash message explaining to the user that he reached a certain amount of login attempt failure and he has to wait for N seconds/minutes/hours before to retry should be added too.

This feature would be based on the failed_attempts value in order to calculate the delay to be waited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant