mirror of
https://github.com/simple-login/app.git
synced 2025-09-08 15:44:21 +08:00
take into account the case an email is primary but not verified on github
This commit is contained in:
parent
6486d4dd6e
commit
5f9ad01849
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue