Azure oauth: Graph api calls it mail, not email
This commit is contained in:
parent
b8442c4c5c
commit
b03cbdea65
|
@ -218,8 +218,8 @@ def login():
|
|||
azure_username = me["userPrincipalName"]
|
||||
azure_givenname = me["givenName"]
|
||||
azure_familyname = me["surname"]
|
||||
if "email" in me:
|
||||
azure_email = me["email"]
|
||||
if "mail" in me:
|
||||
azure_email = me["mail"]
|
||||
else:
|
||||
azure_email = ""
|
||||
if not azure_email:
|
||||
|
|
Loading…
Reference in a new issue