]> git.parisson.com Git - django-social-auth.git/commitdiff
fix typo first_name
authorrevolunet <julien@bouquillon.com>
Mon, 22 Aug 2011 20:11:14 +0000 (22:11 +0200)
committerrevolunet <julien@bouquillon.com>
Mon, 22 Aug 2011 20:11:14 +0000 (22:11 +0200)
social_auth/backends/contrib/github.py

index 7c2e8b8056cf9c2c36c0a1dbdb993ab0db45eb56..82bef4b9322ba300f5e712181a25b728c5e8dd1f 100644 (file)
@@ -37,9 +37,10 @@ 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'),
-                'firstname': response.get('name')}
+                'first_name': response.get('name')}
 
 class GithubAuth(BaseOAuth):
     """Github OAuth mechanism"""