mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
bitbucket now checking for email on login
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user