Skip to content

Commit

Permalink
Merge pull request #559 from openstax/x-20180327-accounts500
Browse files Browse the repository at this point in the history
X 20180327 accounts500
  • Loading branch information
edwoodward authored Mar 27, 2018
2 parents 93ef8ab + 649e192 commit c3bb18c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_user_details(self, response):
email = contact_infos[0]['value']
except IndexError:
email = "[email protected]"
return {'username': response.get('id'),
return {'username': str(response.get('id')),
'email': email,
'first_name': response.get('first_name'),
'last_name': response.get('last_name'),
Expand Down
1 change: 1 addition & 0 deletions openstax/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
IMPORT_USER_PIPELINE = (
'social.pipeline.social_auth.social_user',
'social.pipeline.user.create_user',
'accounts.pipelines.save_profile',
'social.pipeline.social_auth.associate_user',
'social.pipeline.user.user_details',
)
Expand Down

0 comments on commit c3bb18c

Please sign in to comment.