]> git.parisson.com Git - django-social-auth.git/commitdiff
Add comment explaining is_new/login issue. Refs #354
authorMatías Aguirre <matiasaguirre@gmail.com>
Wed, 30 May 2012 18:21:18 +0000 (15:21 -0300)
committerMatías Aguirre <matiasaguirre@gmail.com>
Wed, 30 May 2012 18:21:18 +0000 (15:21 -0300)
social_auth/views.py

index bebcc7866f799934669d8f6bd6955d3d24c03234..23d78b48262777034173cd91dddd6d48af714ba1 100644 (file)
@@ -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