-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Stop password reset email spamming #4003
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
Conversation
|
@MorrisJobke, thanks for your PR! By analyzing the history of the files in this pull request, we identified @LukasReschke, @rullzer and @BernhardPosselt to be potential reviewers. |
|
Should we just use our bruteforce protection? |
I guess that will not help, because this is more about "Only send the reset email once in x minutes" and does not follow the "make it slower after x failed retries" |
|
I tested this and it works fine 👍 |
|
@nickvergessen @LukasReschke @rullzer @blizzz Please review :) |
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
|
With our new API we can do that at any time, not only failed attempts. |
|
I would also prefer to use the brute force protection. If I deleted the mail by accident I don't want to wait 5 minutes until I can ask for another one. If people try to spam me, brute-force protection will help (not after the first mail but after a few). That's what it is for. Also for the user it is completely in-transparent because he doesn't know if he need to wait 5 minutes, 10 minutes, 1 hour, 1 day. Does the counter starts again from zero after any attempt? |
|
The method now has I think this is enough, otherwise we can also add a AnonRateLimit of 60secs, if you think it's not enough? |
cc @nickvergessen