chore(settings): allow notls or none as smtptls setting for convenience
This commit is contained in:
parent
3d5e532e2d
commit
abd85afe57
@ -417,6 +417,8 @@ instance FromJSON LdapConf where
|
|||||||
Just spec
|
Just spec
|
||||||
| spec == "insecure" -> return $ Just Ldap.insecureTlsSettings
|
| spec == "insecure" -> return $ Just Ldap.insecureTlsSettings
|
||||||
| spec == "default" -> return $ Just Ldap.defaultTlsSettings
|
| spec == "default" -> return $ Just Ldap.defaultTlsSettings
|
||||||
|
| spec == "none" -> return Nothing
|
||||||
|
| spec == "notls" -> return Nothing
|
||||||
| null spec -> return Nothing
|
| null spec -> return Nothing
|
||||||
Nothing -> return Nothing
|
Nothing -> return Nothing
|
||||||
_otherwise -> fail "Could not parse LDAP TLSSettings"
|
_otherwise -> fail "Could not parse LDAP TLSSettings"
|
||||||
|
|||||||
Reference in New Issue
Block a user