misc: log honeypot success (#38676)
This commit is contained in:
parent
2b19ab5e86
commit
7f2dcad556
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue