From: Stefano Parmesan Date: Thu, 15 Mar 2012 18:09:30 +0000 (+0100) Subject: fix bug with dropbox authentication: it returned username as int, which then caused... X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2c82d18b4634e8c256ec0410c14b710fc17dbf75;p=django-social-auth.git fix bug with dropbox authentication: it returned username as int, which then caused issues with user registration --- diff --git a/social_auth/backends/contrib/dropbox.py b/social_auth/backends/contrib/dropbox.py index 33a484b..2e4a9cd 100644 --- a/social_auth/backends/contrib/dropbox.py +++ b/social_auth/backends/contrib/dropbox.py @@ -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')}