]> git.parisson.com Git - django-social-auth.git/commitdiff
fix bug with dropbox authentication: it returned username as int, which then caused...
authorStefano Parmesan <stefanop@ahref.eu>
Thu, 15 Mar 2012 18:09:30 +0000 (19:09 +0100)
committerStefano Parmesan <stefanop@ahref.eu>
Thu, 15 Mar 2012 18:09:30 +0000 (19:09 +0100)
social_auth/backends/contrib/dropbox.py

index 33a484bc5df431eda9beb6f107947feafba6ffd7..2e4a9cd0ff6b356bdb946beca31f57e264ded9c9 100644 (file)
@@ -33,7 +33,7 @@ class DropboxBackend(OAuthBackend):
 
     def get_user_details(self, response):
         """Return user details from Dropbox account"""
-        return {USERNAME: response.get('uid'),
+        return {USERNAME: str(response.get('uid')),
                 'email': response.get('email'),
                 'first_name': response.get('display_name')}