Skip to content

Commit

Permalink
enhance: WI-154 do not show recaptcha data (#481)
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Rosenberg <jrosenberg@tacc.utexas.edu>
  • Loading branch information
wesleyboar and jarosenb authored Oct 17, 2024
1 parent f6abca1 commit 5446e52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/tup-cms/src/apps/portal/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def send_confirmation_email(form_name, form_data):
if form_name == "Tour Request Form":
tour_receipt = "<p>A copy of your tour request is provided below for your records:</p>\n"
for key in form_data:
tour_receipt += f"<p>{key}: {form_data[key]}</p>\n"
if not key.startswith('recaptcha_'):
tour_receipt += f"<p>{key}: {form_data[key]}</p>\n"

email_body = f"""
<p>Greetings,</p>
Expand Down

0 comments on commit 5446e52

Please sign in to comment.