bitbucket now checking for email on login

This commit is contained in:
Brad Rydzewski 2014-07-09 22:23:49 -07:00
parent ab0a306cbc
commit 9424b55046

View file

@ -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
}