Commit 98f6a217 authored by Chien Huey's avatar Chien Huey

When connecting to GitHub Enterprise, force email verified field to true

parent c45185f6
......@@ -503,6 +503,11 @@ func (c *githubConnector) userEmail(ctx context.Context, client *http.Client) (s
}
for _, email := range emails {
// if GitHub Enterprise, set email.Verified to true
if c.hostName != "" {
email.Verified = true
}
if email.Verified && email.Primary {
return email.Email, nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment