Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local variable 'user' referenced before assignment #74

Open
Sashan opened this issue Jun 22, 2011 · 0 comments
Open

local variable 'user' referenced before assignment #74

Sashan opened this issue Jun 22, 2011 · 0 comments

Comments

@Sashan
Copy link

Sashan commented Jun 22, 2011

Trying to login authenticated user again using OpenID account
throws exception.

patch below solved my problem:
diff --git a/socialregistration/views.py b/socialregistration/views.py
index 1788fef..f050dc2 100644
--- a/socialregistration/views.py
+++ b/socialregistration/views.py
@@ -305,7 +305,7 @@ def openid_callback(request, template='socialregistration/openid.html',
except OpenIDProfile.DoesNotExist: # There can only be one profile with the same identity
profile = OpenIDProfile.objects.create(user=request.user,
identity=identity)

  •            _connect(user, profile, client)
    
  •            _connect(request.user, profile, client)
    
         return HttpResponseRedirect(_get_next(request))
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant