Merge pull request #2403 from GSA/2298-bug-able-to-keep-pressing-send-and-send-more-and-more-while-processing

Prevent duplicate form submissions
This commit is contained in:
Jonathan Bobel
2025-03-20 13:06:51 -04:00
committed by GitHub
5 changed files with 23 additions and 8 deletions

View File

@@ -924,6 +924,10 @@ def get_template_error_dict(exception):
def preview_notification(service_id, template_id):
recipient = get_recipient()
if not recipient:
current_app.logger.warning(
f"No recipient found for service {service_id}, template {template_id}. Redirecting..."
)
return redirect(
url_for(
".send_one_off",