API Hot Fix - #Error On login without email
This commit is contained in:
parent
ea1a6a4649
commit
85c8af1f74
1 changed files with 5 additions and 4 deletions
|
@ -185,10 +185,11 @@ def oauth(oauth_token):
|
||||||
|
|
||||||
tempName = ";"
|
tempName = ";"
|
||||||
|
|
||||||
if user_data["email"] == "":
|
if 'email' in user_data:
|
||||||
for email in userEmails:
|
if user_data["email"] == "":
|
||||||
if email["primary"] and email["verified"]:
|
for email in userEmails:
|
||||||
tempEmail = email["email"]
|
if email["primary"] and email["verified"]:
|
||||||
|
tempEmail = email["email"]
|
||||||
else:
|
else:
|
||||||
tempEmail = user_data["email"]
|
tempEmail = user_data["email"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue