mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
bitbucket now checking for email on login
This commit is contained in:
parent
ab0a306cbc
commit
9424b55046
1 changed files with 5 additions and 0 deletions
|
@ -132,6 +132,11 @@ func (b *Bitbucket) GetLogin(w http.ResponseWriter, r *http.Request) (*remote.Lo
|
|||
Name: user.User.DisplayName,
|
||||
}
|
||||
|
||||
email, _ := client.Emails.FindPrimary(user.User.Username)
|
||||
if email != nil {
|
||||
login.Email = email.Email
|
||||
}
|
||||
|
||||
return &login, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue