1
0
Fork 0
forked from forgejo/forgejo

Fix issue with log in with GitHub but need more error handle after

This commit is contained in:
Unknown 2014-04-07 13:00:59 -04:00
parent 9ea9818d32
commit 7776f407b6
3 changed files with 13 additions and 14 deletions

View file

@ -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")
}