call WrongReCaptchaCode validator for recaptcha.

svn path=/plone.app.discussion/trunk/; revision=29428
This commit is contained in:
Timo Stollenwerk 2009-08-28 08:32:20 +00:00
parent 5cf3510dd9
commit 1c3aa5e9b5

View File

@ -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