summaryrefslogtreecommitdiffstats
path: root/routers/user/social_google.go
diff options
context:
space:
mode:
authorskyblue <ssx205@gmail.com>2014-04-13 01:15:19 +0800
committerskyblue <ssx205@gmail.com>2014-04-13 01:15:19 +0800
commit75d2affcbf9b26c5a989a75a6654d9b6e21415e9 (patch)
tree5263cd984360d58c4d44057892d9dd49c4aa529b /routers/user/social_google.go
parentf92851e347c6db6468555373bd43c7b507c5fce9 (diff)
downloadgitea-75d2affcbf9b26c5a989a75a6654d9b6e21415e9.tar.gz
gitea-75d2affcbf9b26c5a989a75a6654d9b6e21415e9.zip
add oauth2 qq support
Diffstat (limited to 'routers/user/social_google.go')
-rw-r--r--routers/user/social_google.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/routers/user/social_google.go b/routers/user/social_google.go
index ecd090cd1e..b585386f21 100644
--- a/routers/user/social_google.go
+++ b/routers/user/social_google.go
@@ -1,8 +1,13 @@
+// Copyright 2014 The Gogs Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
package user
import (
"encoding/json"
"net/http"
+ "net/url"
"github.com/gogits/gogs/models"
"code.google.com/p/goauth2/oauth"
@@ -40,7 +45,7 @@ func (s *SocialGoogle) SetRedirectUrl(url string) {
s.Transport.Config.RedirectURL = url
}
-func (s *SocialGoogle) UserInfo(token *oauth.Token) (*BasicUserInfo, error) {
+func (s *SocialGoogle) UserInfo(token *oauth.Token, _ *url.URL) (*BasicUserInfo, error) {
transport := &oauth.Transport{Token: token}
var data struct {
Id string `json:"id"`