misc: log honeypot success (#38676)

This commit is contained in:
Frédéric Péters 2020-05-01 11:34:46 +02:00
parent 2b19ab5e86
commit 7f2dcad556
1 changed files with 1 additions and 0 deletions

View File

@ -849,6 +849,7 @@ class FormPage(Directory, FormTemplateMixin):
if get_request().form.get('f00'): # 🍯
form.add(HiddenErrorWidget, 'honeypot')
form.set_error('honeypot', 'error')
get_logger().info('form %s - honeypot was touched' % self.formdef.name)
page_error_messages.append(_('Honey pot should be left untouched.'))
# form.get_submit() returns the name of the clicked button, and