Azure oauth: Graph api calls it mail, not email

This commit is contained in:
Erik Weber 2020-04-30 12:15:19 +02:00
parent b8442c4c5c
commit b03cbdea65
No known key found for this signature in database
GPG Key ID: 05843120A7BB49E4

View File

@ -218,8 +218,8 @@ def login():
azure_username = me["userPrincipalName"] azure_username = me["userPrincipalName"]
azure_givenname = me["givenName"] azure_givenname = me["givenName"]
azure_familyname = me["surname"] azure_familyname = me["surname"]
if "email" in me: if "mail" in me:
azure_email = me["email"] azure_email = me["mail"]
else: else:
azure_email = "" azure_email = ""
if not azure_email: if not azure_email: