call WrongReCaptchaCode validator for recaptcha.
svn path=/plone.app.discussion/trunk/; revision=29428
This commit is contained in:
parent
5cf3510dd9
commit
1c3aa5e9b5
@ -60,6 +60,6 @@ class CaptchaValidator(validator.SimpleFieldValidator):
|
||||
# Fetch recatpcha view
|
||||
captcha = getMultiAdapter((aq_inner(self.context), self.request), name='recaptcha')
|
||||
if not captcha.verify():
|
||||
raise WrongCaptchaCode
|
||||
raise WrongReCaptchaCode
|
||||
else:
|
||||
return True
|
Loading…
Reference in New Issue
Block a user