diff --git a/providers/casdoor/casdoor.go b/providers/casdoor/casdoor.go index 4b18d69..e00d03a 100644 --- a/providers/casdoor/casdoor.go +++ b/providers/casdoor/casdoor.go @@ -20,7 +20,7 @@ func Provide(opts ...opt.Option) error { } return container.Container.Provide(func(cert *cert.Cert) *Casdoor { certificate := config.Certificate - if cert == "" { + if certificate == "" { certificate = cert.Cert } casdoorsdk.InitConfig(