From 5f9ad01849b389e32a7e8d7758e14a5b1938ca25 Mon Sep 17 00:00:00 2001 From: Son NK Date: Wed, 19 Feb 2020 23:56:07 +0700 Subject: [PATCH] take into account the case an email is primary but not verified on github --- app/auth/views/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/auth/views/github.py b/app/auth/views/github.py index 8f24f132..19ccbb0c 100644 --- a/app/auth/views/github.py +++ b/app/auth/views/github.py @@ -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