Move MFA enforcement setting into limited client config (#10077)

Этот коммит содержится в:
Joram Wilander
2019-01-09 12:19:56 -05:00
коммит произвёл GitHub
родитель 643c54e808
Коммит df076b457a

Просмотреть файл

@@ -550,10 +550,6 @@ func GenerateClientConfig(c *model.Config, diagnosticId string, license *model.L
props["LdapLastNameAttributeSet"] = strconv.FormatBool(*c.LdapSettings.LastNameAttribute != "")
}
if *license.Features.MFA {
props["EnforceMultifactorAuthentication"] = strconv.FormatBool(*c.ServiceSettings.EnforceMultifactorAuthentication)
}
if *license.Features.Compliance {
props["EnableCompliance"] = strconv.FormatBool(*c.ComplianceSettings.Enable)
props["EnableMobileFileDownload"] = strconv.FormatBool(*c.FileSettings.EnableMobileDownload)
@@ -668,7 +664,6 @@ func GenerateLimitedClientConfig(c *model.Config, diagnosticId string, license *
props["LdapLoginButtonColor"] = ""
props["LdapLoginButtonBorderColor"] = ""
props["LdapLoginButtonTextColor"] = ""
props["EnableMultifactorAuthentication"] = "false"
props["EnableSaml"] = "false"
props["SamlLoginButtonText"] = ""
props["SamlLoginButtonColor"] = ""
@@ -710,6 +705,10 @@ func GenerateLimitedClientConfig(c *model.Config, diagnosticId string, license *
props["EnableCustomTermsOfService"] = strconv.FormatBool(*c.SupportSettings.CustomTermsOfServiceEnabled)
props["CustomTermsOfServiceReAcceptancePeriod"] = strconv.FormatInt(int64(*c.SupportSettings.CustomTermsOfServiceReAcceptancePeriod), 10)
}
if *license.Features.MFA {
props["EnforceMultifactorAuthentication"] = strconv.FormatBool(*c.ServiceSettings.EnforceMultifactorAuthentication)
}
}
return props