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:
Johannes Bornhold 2016-05-26 12:42:28 +02:00
parent c6ced3ae23
commit cc6721f2fa

View file

@ -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')