take into account the case an email is primary but not verified on github

This commit is contained in:
Son NK 2020-02-19 23:56:07 +07:00
parent 6486d4dd6e
commit 5f9ad01849
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ def github_callback():
email = None
for e in emails:
if e.get("verified") and e.get("primary"):
if e.get("verified"):
email = e.get("email")
break