Commit dbf9cdd0 authored by Jérome Perrin's avatar Jérome Perrin

CaptchaField: fix "numeric" captch provider

It seems this never worked, it was comparing a string received from the client
with a number from the session.
parent f53ef1a4
......@@ -125,7 +125,7 @@ class NumericCaptchaProvider(object):
calculus_text = " ".join(terms)
result = eval(calculus_text)
return (calculus_text, result)
return (calculus_text, str(result))
def getHTML(self, field, captcha_key):
# Make the text harder to parse for a computer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment