From e0ef2d189bbae448b164a91df24c1dd258e02fbc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Aguirre?= Date: Wed, 30 May 2012 15:21:18 -0300 Subject: [PATCH] Add comment explaining is_new/login issue. Refs #354 --- social_auth/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/social_auth/views.py b/social_auth/views.py index bebcc78..23d78b4 100644 --- a/social_auth/views.py +++ b/social_auth/views.py @@ -103,6 +103,7 @@ def complete_process(request, backend, *args, **kwargs): if user: if getattr(user, 'is_active', True): + # catch is_new flag before login() might reset the instance is_new = getattr(user, 'is_new', False) login(request, user) # user.social_user is the used UserSocialAuth instance defined -- 2.39.5