Skip to content

Commit

Permalink
Fix hardcode email
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-slu committed Feb 5, 2019
1 parent 19b364e commit 7f9ca0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion edx_oauth_client/backends/generic_oauth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ def get_user_id(self, details, response):
if 'data' in response:
id_key = response['data'][0].get(self.ID_KEY)
else:
id_key = response.get('email')
id_key = response.get(self.ID_KEY)

if not id_key:
log.error("ID_KEY is not found in the User data response. SSO won't work correctly")
return id_key

0 comments on commit 7f9ca0e

Please sign in to comment.