]> git.parisson.com Git - django-social-auth.git/commitdiff
Use blank string if no email. Closes gh-135
authorMatías Aguirre <matiasaguirre@gmail.com>
Mon, 29 Aug 2011 00:39:00 +0000 (21:39 -0300)
committerMatías Aguirre <matiasaguirre@gmail.com>
Mon, 29 Aug 2011 00:39:00 +0000 (21:39 -0300)
social_auth/backends/contrib/github.py

index 9bc5a5cbaeb3da2cab80f9c5ce53c091307bd48a..124bc225b3749f9ae9873a0ff1d2c16af6df1891 100644 (file)
@@ -37,9 +37,8 @@ class GithubBackend(OAuthBackend):
 
     def get_user_details(self, response):
         """Return user details from Github account"""
-       print response
         return {USERNAME: response.get('login'),
-                'email': response.get('email'),
+                'email': response.get('email') or '',
                 'first_name': response.get('name')}
 
 class GithubAuth(BaseOAuth):