forked from forgejo/forgejo
Fix issue with log in with GitHub but need more error handle after
This commit is contained in:
parent
9ea9818d32
commit
7776f407b6
3 changed files with 13 additions and 14 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue