fix(minor): increase rate limit for web form (#24295)

increased rate limit for web form to 10 requests per minute.
This commit is contained in:
Maharshi Patel 2024-01-12 20:58:34 +05:30 committed by GitHub
parent c9cccf0598
commit 65af4b8dbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -444,7 +444,7 @@ def get_web_form_module(doc):
@frappe.whitelist(allow_guest=True)
@rate_limit(limit=5, seconds=60)
@rate_limit(key="web_form", limit=10, seconds=60)
def accept(web_form, data):
"""Save the web form"""
data = frappe._dict(json.loads(data))