chore(settings): allow notls or none as smtptls setting for convenience

This commit is contained in:
Steffen Jost 2021-11-25 17:30:40 +01:00
parent 3d5e532e2d
commit abd85afe57

View File

@ -417,6 +417,8 @@ instance FromJSON LdapConf where
Just spec
| spec == "insecure" -> return $ Just Ldap.insecureTlsSettings
| spec == "default" -> return $ Just Ldap.defaultTlsSettings
| spec == "none" -> return Nothing
| spec == "notls" -> return Nothing
| null spec -> return Nothing
Nothing -> return Nothing
_otherwise -> fail "Could not parse LDAP TLSSettings"