captcha
This commit is contained in:
parent
e992fef16f
commit
37bd3b8143
@ -34,7 +34,7 @@ def new_form_comment():
|
||||
abort(400)
|
||||
|
||||
# honeypot for spammers
|
||||
captcha = data.get("captcha", "")
|
||||
captcha = data.get("remarque", "")
|
||||
if captcha:
|
||||
logger.warn("discard spam: data %s" % data)
|
||||
abort(400)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user