Skip to content

Commit

Permalink
Merge pull request #427 from 1st/patch-1
Browse files Browse the repository at this point in the history
FIXED bug for login via Twitter (empty email)
  • Loading branch information
omab committed Aug 8, 2012
2 parents bb3095c + c2440a5 commit fec4917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion social_auth/backends/pipeline/user.py
Expand Up @@ -44,7 +44,7 @@ def create_user(backend, details, response, uid, username, user=None, *args,
if not username:
return None

email = details.get('email') or None
email = details.get('email') # NOTE: not return None because Django raises exception of strip email
return {
'user': UserSocialAuth.create_user(username=username, email=email),
'is_new': True
Expand Down

0 comments on commit fec4917

Please sign in to comment.