Skip to content

Commit

Permalink
Update user only if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
omab committed Jan 24, 2011
1 parent 668179b commit fbcfa86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion social_auth/backends/__init__.py
Expand Up @@ -101,7 +101,7 @@ def authenticate(self, *args, **kwargs):
# Update extra_data storage, unless disabled by setting
if getattr(settings, 'SOCIAL_AUTH_EXTRA_DATA', True):
extra_data = self.extra_data(user, uid, response, details)
if extra_data:
if extra_data and social_user.extra_data != extra_data:
social_user.extra_data = extra_data
social_user.save()

Expand Down

0 comments on commit fbcfa86

Please sign in to comment.