Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
a7899b7d
Commit
a7899b7d
authored
Jun 19, 2013
by
Kostas Papadimitriou
Browse files
astakos: Fix regression in signup view
when recpatcha is enabled in astakos settings
parent
79a12b32
Changes
2
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/forms.py
View file @
a7899b7d
...
...
@@ -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'
,
request
.
META
.
get
(
'HTTP_X_REAL_IP'
,
...
...
snf-astakos-app/astakos/im/views/im.py
View file @
a7899b7d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment