login: Fix error when getting remote IP address during registration.
- Missed a call to `self.ip_addr` during migration to pyramid.
This commit is contained in:
parent
c6ced3ae23
commit
cc6721f2fa
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ class LoginView(object):
|
|||
self.request.params.get('recaptcha_challenge_field'),
|
||||
self.request.params.get('recaptcha_response_field'),
|
||||
private_key=captcha_private_key,
|
||||
remoteip=self.ip_addr)
|
||||
remoteip=get_ip_addr(self.request.environ))
|
||||
if captcha_active and not response.is_valid:
|
||||
_value = form_result
|
||||
_msg = _('bad captcha')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue