diff --git a/plugin/remote/bitbucket/bitbucket.go b/plugin/remote/bitbucket/bitbucket.go index 300becc07..1c49e0f9c 100644 --- a/plugin/remote/bitbucket/bitbucket.go +++ b/plugin/remote/bitbucket/bitbucket.go @@ -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 }