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:
parent
962a4487d7
commit
5f3b882c0c
@ -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 New Issue
Block a user