1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-30 08:06:52 +02:00

fixed typo

This commit is contained in:
Brad Rydzewski 2014-09-05 20:40:18 -07:00
parent 962a4487d7
commit 5f3b882c0c

View File

@ -93,8 +93,9 @@ func (r *GitHub) Authorize(res http.ResponseWriter, req *http.Request) (*model.L
login.Access = token.AccessToken
login.Login = *useremail.Login
login.Email = *useremail.Email
if username.Name == nil {
login.Name = *useremail.Email
login.Name = *useremail.Email
if useremail.Name != nil {
login.Name = *useremail.Name
}
return login, nil