Raise request form rate limit from 5/min to 60/min (booth shares one IP)

This commit is contained in:
Troll (Hermes Agent) 2026-09-20 16:14:41 +00:00
parent 868b59077f
commit 6067b668ac
3 changed files with 5 additions and 5 deletions

4
app.py
View file

@ -167,14 +167,14 @@ def index():
@app.route('/request', methods=['GET', 'POST'])
@limiter.limit("5 per minute")
@limiter.limit("60 per minute")
def request_form():
"""
Public request form.
GET -> shows the form with the banner image, or a closed message if the booth is closed.
POST -> validates the email, creates a database record, sends a
confirmation email, and redirects to the thanks page.
Rate limited to 5 submissions per minute per IP.
Rate limited to 60 submissions per minute per IP (a shared booth IP means many visitors hit the same address).
"""
if not get_booth_open():
return render_template('closed.html')