API Hot Fix - #Error On login without email

This commit is contained in:
Sagi Dayan 2015-07-07 21:05:41 +03:00
parent ea1a6a4649
commit 85c8af1f74

View file

@ -185,10 +185,11 @@ def oauth(oauth_token):
tempName = ";"
if user_data["email"] == "":
for email in userEmails:
if email["primary"] and email["verified"]:
tempEmail = email["email"]
if 'email' in user_data:
if user_data["email"] == "":
for email in userEmails:
if email["primary"] and email["verified"]:
tempEmail = email["email"]
else:
tempEmail = user_data["email"]