rate_limiter: Rate limit the /new/ endpoint.

This commit is contained in:
Mateusz Mandera
2021-07-19 20:31:09 +02:00
committed by Tim Abbott
parent 4418aefde4
commit 1c64bed8e4
4 changed files with 18 additions and 1 deletions

View File

@@ -384,6 +384,9 @@ RATE_LIMITING_RULES = {
"authenticate_by_username": [
(1800, 5), # 5 login attempts within 30 minutes
],
"create_realm_by_ip": [
(1800, 5),
],
"password_reset_form_by_email": [
(3600, 2), # 2 reset emails per hour
(86400, 5), # 5 per day