[Python-modules-commits] [python-social-auth] 64/131: fix first and last name recovery

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:17:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.20
in repository python-social-auth.

commit ee16b369eeacce5aa40103479f0fb4d3206e561c
Author: Philip Garnero <philip.garnero at gmail.com>
Date:   Sun Jun 5 19:24:23 2016 -0700

    fix first and last name recovery
---
 social/backends/uber.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/social/backends/uber.py b/social/backends/uber.py
index ef6c381..d83f9b0 100644
--- a/social/backends/uber.py
+++ b/social/backends/uber.py
@@ -19,7 +19,8 @@ class UberOAuth2(BaseOAuth2):
     def get_user_details(self, response):
         """Return user details from Uber account"""
         email = response.get('email', '')
-        fullname, first_name, last_name = self.get_user_names()
+        fullname, first_name, last_name = self.get_user_names('', response.get('first_name', ''),
+                                                              response.get('last_name', ''))
         return {'username': email,
                 'email': email,
                 'fullname': fullname,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list