diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-07 13:00:59 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-07 13:00:59 -0400 |
commit | 7776f407b6cf7e4897377b73ef6235ecfd9f2a53 (patch) | |
tree | 65934102b81714dd81de6d8a265a675c67e08cf8 /modules | |
parent | 9ea9818d3255e5b08293205e278240dece36687d (diff) | |
download | gitea-7776f407b6cf7e4897377b73ef6235ecfd9f2a53.tar.gz gitea-7776f407b6cf7e4897377b73ef6235ecfd9f2a53.zip |
Fix issue with log in with GitHub but need more error handle after
Diffstat (limited to 'modules')
-rw-r--r-- | modules/base/conf.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go index ba9c320d77..69df49dc48 100644 --- a/modules/base/conf.go +++ b/modules/base/conf.go @@ -34,6 +34,7 @@ type Oauther struct { GitHub struct { Enabled bool ClientId, ClientSecret string + Scopes string } } @@ -263,6 +264,7 @@ func newOauthService() { OauthService.GitHub.Enabled = true OauthService.GitHub.ClientId = Cfg.MustValue("oauth.github", "CLIENT_ID") OauthService.GitHub.ClientSecret = Cfg.MustValue("oauth.github", "CLIENT_SECRET") + OauthService.GitHub.Scopes = Cfg.MustValue("oauth.github", "SCOPES") oauths = append(oauths, "GitHub") } |