Fix provider type.

This commit is contained in:
Yang Luo
2021-03-28 20:20:40 +08:00
parent 73ffb22c32
commit d6c8bb87c2
5 changed files with 53 additions and 27 deletions

View File

@ -33,11 +33,11 @@ type IdProvider interface {
}
func GetIdProvider(providerType string, clientId string, clientSecret string, redirectUrl string) IdProvider {
if providerType == "github" {
if providerType == "GitHub" {
return NewGithubIdProvider(clientId, clientSecret, redirectUrl)
} else if providerType == "google" {
} else if providerType == "Google" {
return NewGoogleIdProvider(clientId, clientSecret, redirectUrl)
} else if providerType == "qq" {
} else if providerType == "QQ" {
return NewQqIdProvider(clientId, clientSecret, redirectUrl)
}