Skip to content
Browse files

If the user was already logged in they would not be redirected to the…

… corrent url if it was overriden in the session.
  • Loading branch information...
1 parent 452b069 commit 0e4ad64bb30455fb1ae41ad27892267c1b9e6c67 @dpetzold committed Feb 18, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 social_auth/
3 social_auth/
@@ -147,6 +147,9 @@ def complete_process(request, backend, *args, **kwargs):
if isinstance(user, HttpResponse):
return user
+ if not user and request.user.is_authenticated():
+ return HttpResponseRedirect(redirect_value)
if user:
if getattr(user, 'is_active', True):
login(request, user)

0 comments on commit 0e4ad64

Please sign in to comment.
Something went wrong with that request. Please try again.