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.Access = token.AccessToken
login.Login = *useremail.Login login.Login = *useremail.Login
login.Email = *useremail.Email 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 return login, nil