captcha
This commit is contained in:
parent
1c75ecc9a1
commit
85fe290e83
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue