fix: use trimspace instead

This commit is contained in:
nityanandagohain 2025-06-03 23:51:24 +05:30
parent bd53513fe3
commit 6e25b2a195

View File

@ -103,7 +103,7 @@ func (od *GettableOrgDomain) GetSAMLIdpURL() string {
func (od *GettableOrgDomain) GetSAMLCert() string {
if od.SamlConfig != nil {
// remove any whitespaces from the cert
cert := strings.ReplaceAll(od.SamlConfig.SamlCert, " ", "")
cert := strings.TrimSpace(od.SamlConfig.SamlCert)
return cert
}
return ""