Show More
@@ -241,7 +241,7 b' class LoginView(object):' | |||||
241 | self.request.params.get('recaptcha_response_field'), |
|
241 | self.request.params.get('recaptcha_response_field'), | |
242 | private_key=captcha.private_key, |
|
242 | private_key=captcha.private_key, | |
243 | remoteip=get_ip_addr(self.request.environ)) |
|
243 | remoteip=get_ip_addr(self.request.environ)) | |
244 |
if |
|
244 | if not response.is_valid: | |
245 | _value = form_result |
|
245 | _value = form_result | |
246 | _msg = _('bad captcha') |
|
246 | _msg = _('bad captcha') | |
247 | error_dict = {'recaptcha_field': _msg} |
|
247 | error_dict = {'recaptcha_field': _msg} | |
@@ -303,7 +303,7 b' class LoginView(object):' | |||||
303 | self.request.params.get('recaptcha_response_field'), |
|
303 | self.request.params.get('recaptcha_response_field'), | |
304 | private_key=captcha.private_key, |
|
304 | private_key=captcha.private_key, | |
305 | remoteip=get_ip_addr(self.request.environ)) |
|
305 | remoteip=get_ip_addr(self.request.environ)) | |
306 |
if |
|
306 | if not response.is_valid: | |
307 | _value = form_result |
|
307 | _value = form_result | |
308 | _msg = _('bad captcha') |
|
308 | _msg = _('bad captcha') | |
309 | error_dict = {'recaptcha_field': _msg} |
|
309 | error_dict = {'recaptcha_field': _msg} |
General Comments 0
You need to be logged in to leave comments.
Login now