commento/api/oauth.go

29 lines
436 B
Go
Raw Normal View History

package main
import ()
var googleConfigured bool
var twitterConfigured bool
var githubConfigured bool
var gitlabConfigured bool
func oauthConfigure() error {
if err := googleOauthConfigure(); err != nil {
return err
}
2019-02-24 00:19:58 +08:00
if err := twitterOauthConfigure(); err != nil {
return err
}
2019-02-24 00:19:58 +08:00
if err := githubOauthConfigure(); err != nil {
2019-02-23 10:23:24 +08:00
return err
}
2019-02-23 10:54:08 +08:00
if err := gitlabOauthConfigure(); err != nil {
return err
}
return nil
}