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
|
# Fetch recatpcha view
|
||||||
captcha = getMultiAdapter((aq_inner(self.context), self.request), name='recaptcha')
|
captcha = getMultiAdapter((aq_inner(self.context), self.request), name='recaptcha')
|
||||||
if not captcha.verify():
|
if not captcha.verify():
|
||||||
raise WrongCaptchaCode
|
raise WrongReCaptchaCode
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
Loading…
Reference in New Issue
Block a user