mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02:00
take into account the case an email is primary but not verified on github
This commit is contained in:
parent
6486d4dd6e
commit
5f9ad01849
@ -74,7 +74,7 @@ def github_callback():
|
|||||||
email = None
|
email = None
|
||||||
|
|
||||||
for e in emails:
|
for e in emails:
|
||||||
if e.get("verified") and e.get("primary"):
|
if e.get("verified"):
|
||||||
email = e.get("email")
|
email = e.get("email")
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user