Skip to content

Commit

Permalink
fix(synapse): use email from synapse
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao committed Nov 26, 2019
1 parent 4973f72 commit cbf1254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fence/blueprints/login/synapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self):

def post_login(self, user, token_result):
user.id_from_idp = token_result["sub"]
user.email = token_result["email_verified"]
user.email = token_result["email"]
user.display_name = "{given_name} {family_name}".format(**token_result)
info = {}
if user.additional_info is not None:
Expand Down

0 comments on commit cbf1254

Please sign in to comment.