Browse Source

Added google oauth account id

Vinicyus Macedo 7 years ago
parent
commit
057f611194
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pkg/social/google_oauth.go

+ 1 - 0
pkg/social/google_oauth.go

@@ -32,6 +32,7 @@ func (s *SocialGoogle) IsSignupAllowed() bool {
 
 
 func (s *SocialGoogle) UserInfo(client *http.Client, token *oauth2.Token) (*BasicUserInfo, error) {
 func (s *SocialGoogle) UserInfo(client *http.Client, token *oauth2.Token) (*BasicUserInfo, error) {
 	var data struct {
 	var data struct {
+		Id    int    `json:"id"`
 		Name  string `json:"name"`
 		Name  string `json:"name"`
 		Email string `json:"email"`
 		Email string `json:"email"`
 	}
 	}