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