@@ -592,7 +592,6 @@ func GenerateClientConfig(c *model.Config, diagnosticId string, license *model.L
592
592
props ["LdapNicknameAttributeSet" ] = "false"
593
593
props ["LdapFirstNameAttributeSet" ] = "false"
594
594
props ["LdapLastNameAttributeSet" ] = "false"
595
- props ["EnforceMultifactorAuthentication" ] = "false"
596
595
props ["EnableCompliance" ] = "false"
597
596
props ["EnableMobileFileDownload" ] = "true"
598
597
props ["EnableMobileFileUpload" ] = "true"
@@ -761,6 +760,8 @@ func GenerateLimitedClientConfig(c *model.Config, diagnosticId string, license *
761
760
props ["EnableCustomBrand" ] = strconv .FormatBool (* c .TeamSettings .EnableCustomBrand )
762
761
props ["CustomBrandText" ] = * c .TeamSettings .CustomBrandText
763
762
props ["CustomDescriptionText" ] = * c .TeamSettings .CustomDescriptionText
763
+ props ["EnableMultifactorAuthentication" ] = "false"
764
+ props ["EnforceMultifactorAuthentication" ] = "false"
764
765
765
766
if license != nil {
766
767
if * license .Features .LDAP {
@@ -773,6 +774,7 @@ func GenerateLimitedClientConfig(c *model.Config, diagnosticId string, license *
773
774
774
775
if * license .Features .MFA {
775
776
props ["EnableMultifactorAuthentication" ] = strconv .FormatBool (* c .ServiceSettings .EnableMultifactorAuthentication )
777
+ props ["EnforceMultifactorAuthentication" ] = strconv .FormatBool (* c .ServiceSettings .EnforceMultifactorAuthentication )
776
778
}
777
779
778
780
if * license .Features .SAML {
@@ -795,10 +797,6 @@ func GenerateLimitedClientConfig(c *model.Config, diagnosticId string, license *
795
797
props ["EnableCustomTermsOfService" ] = strconv .FormatBool (* c .SupportSettings .CustomTermsOfServiceEnabled )
796
798
props ["CustomTermsOfServiceReAcceptancePeriod" ] = strconv .FormatInt (int64 (* c .SupportSettings .CustomTermsOfServiceReAcceptancePeriod ), 10 )
797
799
}
798
-
799
- if * license .Features .MFA {
800
- props ["EnforceMultifactorAuthentication" ] = strconv .FormatBool (* c .ServiceSettings .EnforceMultifactorAuthentication )
801
- }
802
800
}
803
801
804
802
return props
0 commit comments