Skip to content

Commit

Permalink
Merge pull request python-social-auth#362 from aramboi/bug/cognito-wr…
Browse files Browse the repository at this point in the history
…ong-last-name

Use the value from family_name attribute for last_name in Cognito backend
  • Loading branch information
omab authored May 30, 2019
2 parents 8764df7 + 7fe0ee1 commit 1e43c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion social_core/backends/cognito.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def user_data_url(self):
def get_user_details(self, response):
"""Return user details from their cognito pool account"""
first_name = response.get('given_name') or ''
last_name = response.get('given_name') or ''
last_name = response.get('family_name') or ''
fullname, first_name, last_name = self.get_user_names(
first_name=first_name,
last_name=last_name,
Expand Down

0 comments on commit 1e43c84

Please sign in to comment.