mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 08:02:18 +02:00
bitbucket now checking for email on login
This commit is contained in:
parent
ab0a306cbc
commit
9424b55046
@ -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 New Issue
Block a user