diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-28 21:20:13 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-28 21:20:13 -0500 |
commit | d6132aaa88d0ef0bc261aab0a6915835d40b7372 (patch) | |
tree | 1c303152b729eba15fbc90e3665594944871927f /modules/setting | |
parent | 9adc8e9d3fe47d985d3bd8963f5803e8eff1c1eb (diff) | |
download | gitea-d6132aaa88d0ef0bc261aab0a6915835d40b7372.tar.gz gitea-d6132aaa88d0ef0bc261aab0a6915835d40b7372.zip |
fix oauth2
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index a775847c1f..9737fa7c1d 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -17,6 +17,7 @@ import ( "github.com/Unknwon/com" "github.com/Unknwon/goconfig" + "github.com/macaron-contrib/oauth2" "github.com/macaron-contrib/session" "github.com/gogits/gogs/modules/log" @@ -434,9 +435,8 @@ type Mailer struct { } type OauthInfo struct { - ClientId, ClientSecret string - Scopes string - AuthUrl, TokenUrl string + oauth2.Options + AuthUrl, TokenUrl string } // Oauther represents oauth service. |