fixed typo
This commit is contained in:
parent
962a4487d7
commit
5f3b882c0c
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue