Commit a7899b7d authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

astakos: Fix regression in signup view

when recpatcha is enabled in astakos settings
parent 79a12b32
......@@ -120,6 +120,7 @@ class LocalUserCreationForm(UserCreationForm, StoreUserMixin):
if not provider == 'local':
raise Exception('Invalid provider')
self.ip = None
if request:
self.ip = request.META.get('REMOTE_ADDR',
......@@ -452,7 +452,7 @@ def signup(request, template_name='im/signup.html', on_success='index',
if not activation_backend:
activation_backend = activation_backends.get_backend()
form_kwargs = {'instance': instance}
form_kwargs = {'instance': instance, 'request': request}
if third_party_token:
form_kwargs['third_party_token'] = third_party_token
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