mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-29 03:40:31 +00:00
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.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
|
||||
|
|
Loading…
Reference in a new issue