Skip to content

Commit

Permalink
Merge pull request #58 from ScilifelabDataCentre/fix-email
Browse files Browse the repository at this point in the history
Always run the email check, not only for captcha
  • Loading branch information
talavis authored Feb 15, 2023
2 parents 118262f + 814031c commit 6a73ee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions form_manager/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ def receive_submission(identifier: str):
return flask.redirect(f"/failure{redirect_args}")
del form_submission["g-recaptcha-response"]

if form_info.get("email_recipients"):
utils.send_email(form_info, form_submission, mail)
if form_info.get("email_recipients"):
utils.send_email(form_info, form_submission, mail)

to_add = {
"submission": form_submission,
Expand Down

0 comments on commit 6a73ee0

Please sign in to comment.