]> source.dussan.org Git - gitea.git/commitdiff
Mirror fix
authorUnknown <joe2010xtmf@163.com>
Thu, 17 Apr 2014 06:20:24 +0000 (02:20 -0400)
committerUnknown <joe2010xtmf@163.com>
Thu, 17 Apr 2014 06:20:24 +0000 (02:20 -0400)
conf/app.ini
web.go

index 90ed0b5bc1f8daf9e6745ca85fea50a2e41e376a..38b556506f274d592fd6dfc392c348cb06dd49d0 100644 (file)
@@ -98,20 +98,20 @@ ENABLED = false
 CLIENT_ID = 
 CLIENT_SECRET = 
 SCOPES = all
-AUTH_URL = https://graph.qq.com/oauth2.0/authorize
-TOKEN_URL = https://graph.qq.com/oauth2.0/token
+; QQ 互联
+; AUTH_URL = https://graph.qq.com/oauth2.0/authorize
+; TOKEN_URL = https://graph.qq.com/oauth2.0/token
+; Tencent weibo
+AUTH_URL = https://open.t.qq.com/cgi-bin/oauth2/authorize
+TOKEN_URL = https://open.t.qq.com/cgi-bin/oauth2/access_token
 
 [oauth.twitter]
 ENABLED = false
 CLIENT_ID = 
 CLIENT_SECRET = 
 SCOPES = all
-; Tencent weibo
-AUTH_URL = https://open.t.qq.com/cgi-bin/oauth2/authorize
-TOKEN_URL = https://open.t.qq.com/cgi-bin/oauth2/access_token
-; QQ 互联
-; AUTH_URL = https://api.twitter.com/oauth/authorize
-; TOKEN_URL = https://api.twitter.com/oauth/access_token
+AUTH_URL = https://api.twitter.com/oauth/authorize
+TOKEN_URL = https://api.twitter.com/oauth/access_token
 
 [oauth.weibo]
 ENABLED = false
diff --git a/web.go b/web.go
index 8dc232fd24b6a37b4875d1efee83d2394c6be673..0be2a05a046929c97641639286baafcf05d1ec0a 100644 (file)
--- a/web.go
+++ b/web.go
@@ -12,7 +12,6 @@ import (
 
        "github.com/codegangsta/cli"
        "github.com/go-martini/martini"
-
        qlog "github.com/qiniu/log"
 
        "github.com/gogits/gogs/modules/auth"