fix: fixed github oauth login with allowed orgs filter, fixes #10964, reverts #10851

This commit is contained in:
Torkel Ödegaard 2018-02-20 11:29:58 +01:00
parent 21d48df095
commit 69ccbffaed

View File

@ -210,7 +210,7 @@ func (s *SocialGithub) UserInfo(client *http.Client, token *oauth2.Token) (*Basi
if err != nil {
return nil, fmt.Errorf("Error getting user info: %s", err)
}
data.OrganizationsUrl = s.apiUrl + "/user/orgs"
userInfo := &BasicUserInfo{
Name: data.Login,
Login: data.Login,