From 90fc811b546ed2f80fdf0c62404f07d14ca6e775 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Fri, 5 Nov 2021 13:10:05 -0700 Subject: [PATCH] settings: Limit non-logged-in email-sending to 5/day, not per 30 min. This more closely matches email_change_by_user and password_reset_form_by_email limits; legitimate users are unlikely to need to send more than 5 emails to themselves during a day. --- zproject/computed_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py index 5b7814f2ab..d9f7e28030 100644 --- a/zproject/computed_settings.py +++ b/zproject/computed_settings.py @@ -394,7 +394,7 @@ RATE_LIMITING_RULES = { (86400, 5), # 5 per day ], "sends_email_by_ip": [ - (1800, 5), + (86400, 5), ], }