mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-24 23:34:52 +08:00
Adding validation for LDAP settings to configuration (#3425)
This commit is contained in:
committed by
GitHub
parent
8c2282f89e
commit
96bddf9016
+2
-4
@@ -168,13 +168,11 @@ func LoadConfig(fileName string) {
|
||||
config.SetDefaults()
|
||||
|
||||
if err := config.IsValid(); err != nil {
|
||||
panic(T("utils.config.load_config.validating.panic",
|
||||
map[string]interface{}{"Filename": fileName, "Error": err.Message}))
|
||||
panic(err.Error())
|
||||
}
|
||||
|
||||
if err := ValidateLdapFilter(&config); err != nil {
|
||||
panic(T("utils.config.load_config.validating.panic",
|
||||
map[string]interface{}{"Filename": fileName, "Error": err.Message}))
|
||||
panic(err.Error())
|
||||
}
|
||||
|
||||
configureLog(&config.LogSettings)
|
||||
|
||||
Reference in New Issue
Block a user