commenting: show CAPTCHA to new accounts (#443)

Basically re-use the upload CAPTCHA code to also do this for
comments.
This commit is contained in:
Nicolas F
2018-02-01 19:50:00 +01:00
committed by Arylide
parent f8a287caa0
commit 0285c12264
2 changed files with 29 additions and 2 deletions

View File

@@ -205,6 +205,8 @@ class CommentForm(FlaskForm):
DataRequired(message='Comment must not be empty.')
])
recaptcha = RecaptchaField(validators=[upload_recaptcha_validator_shim])
class InlineButtonWidget(object):
"""