mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Fix small issues.
This commit is contained in:
@ -57,6 +57,10 @@ func extendApplicationWithProviders(application *Application) {
|
||||
providers := GetProviders(application.Owner)
|
||||
m := map[string]*Provider{}
|
||||
for _, provider := range providers {
|
||||
if provider.Category != "OAuth" {
|
||||
continue
|
||||
}
|
||||
|
||||
provider.ClientSecret = ""
|
||||
provider.ProviderUrl = ""
|
||||
m[provider.Name] = provider
|
||||
|
@ -84,7 +84,7 @@ func getDefaultEmailProvider() *Provider {
|
||||
}
|
||||
|
||||
func getDefaultPhoneProvider() *Provider {
|
||||
provider := Provider{Owner: "admin", Category: "Phone"}
|
||||
provider := Provider{Owner: "admin", Category: "SMS"}
|
||||
existed, err := adapter.Engine.Get(&provider)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user