##// END OF EJS Templates
login: Removed superfluos if condition.
Martin Bornhold -
r1063:23036236 default
parent child Browse files
Show More
@@ -241,7 +241,7 b' class LoginView(object):'
241 241 self.request.params.get('recaptcha_response_field'),
242 242 private_key=captcha.private_key,
243 243 remoteip=get_ip_addr(self.request.environ))
244 if captcha.active and not response.is_valid:
244 if not response.is_valid:
245 245 _value = form_result
246 246 _msg = _('bad captcha')
247 247 error_dict = {'recaptcha_field': _msg}
@@ -303,7 +303,7 b' class LoginView(object):'
303 303 self.request.params.get('recaptcha_response_field'),
304 304 private_key=captcha.private_key,
305 305 remoteip=get_ip_addr(self.request.environ))
306 if captcha.active and not response.is_valid:
306 if not response.is_valid:
307 307 _value = form_result
308 308 _msg = _('bad captcha')
309 309 error_dict = {'recaptcha_field': _msg}
General Comments 0
You need to be logged in to leave comments. Login now