Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
98f6a217
Commit
98f6a217
authored
Aug 17, 2017
by
Chien Huey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When connecting to GitHub Enterprise, force email verified field to true
parent
c45185f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
github.go
connector/github/github.go
+5
-0
No files found.
connector/github/github.go
View file @
98f6a217
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment