captchas are always required

This commit is contained in:
Thomas NOËL 2011-07-04 11:48:42 +00:00
parent 9d93cd3a3a
commit 67a3c35d83
1 changed files with 1 additions and 1 deletions

View File

@ -888,7 +888,7 @@ class CaptchaWidget(CompositeWidget):
question = _('What is the result of %(a)d %(op)s %(b)d?') % {
'a': a, 'b': b, 'op': _(operator)}
hint = _('Please answer this simple mathematical question as proof you are not a bot.')
self.add(StringWidget, 'q', title = question, hint = hint)
self.add(StringWidget, 'q', title = question, hint = hint, required=True)
token['answer'] = str(answer)
def _parse(self, request):