repel bots on unconfirm url.
This commit is contained in:
parent
d073748885
commit
bd82e2f90b
|
@ -383,6 +383,11 @@ def request_unconfirm_form(form_id):
|
|||
This endpoints triggers a confirmation email that directs users to the
|
||||
GET version of unconfirm_form.
|
||||
'''
|
||||
|
||||
# repel bots
|
||||
if not request.user_agent.browser:
|
||||
return ''
|
||||
|
||||
form = Form.query.get(form_id)
|
||||
|
||||
unconfirm_url = url_for(
|
||||
|
|
Loading…
Reference in New Issue