fix: use replaceall

This commit is contained in:
nityanandagohain 2025-06-03 23:57:01 +05:30
parent 6e25b2a195
commit fa965af248

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.TrimSpace(od.SamlConfig.SamlCert)
cert := strings.ReplaceAll(od.SamlConfig.SamlCert, " ", "")
return cert
}
return ""