Exposing enforce mfa in client config (#11686)

This commit is contained in:
Jesús Espino
2019-07-23 15:02:21 +02:00
committed by GitHub
parent 8dcbab97b4
commit be099215c5

View File

@@ -274,6 +274,7 @@ func GenerateLimitedClientConfig(c *model.Config, diagnosticId string, license *
props["EnableMultifactorAuthentication"] = strconv.FormatBool(*c.ServiceSettings.EnableMultifactorAuthentication)
props["EnforceMultifactorAuthentication"] = "false"
props["EnableGuestAccounts"] = strconv.FormatBool(*c.GuestAccountsSettings.Enable)
props["GuestAccountsEnforceMultifactorAuthentication"] = strconv.FormatBool(*c.GuestAccountsSettings.EnforceMultifactorAuthentication)
if license != nil {
if *license.Features.LDAP {