diff options
Diffstat (limited to 'utils/config.go')
-rw-r--r-- | utils/config.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go index 1fbed5d7b..cbae0e2cb 100644 --- a/utils/config.go +++ b/utils/config.go @@ -288,6 +288,14 @@ func getClientConfig(c *model.Config) map[string]string { props["EnableSaml"] = strconv.FormatBool(*c.SamlSettings.Enable) props["SamlLoginButtonText"] = *c.SamlSettings.LoginButtonText } + + if *License.Features.PasswordRequirements { + props["PasswordMinimumLength"] = fmt.Sprintf("%v", *c.PasswordSettings.MinimumLength) + props["PasswordRequireLowercase"] = strconv.FormatBool(*c.PasswordSettings.Lowercase) + props["PasswordRequireUppercase"] = strconv.FormatBool(*c.PasswordSettings.Uppercase) + props["PasswordRequireNumber"] = strconv.FormatBool(*c.PasswordSettings.Number) + props["PasswordRequireSymbol"] = strconv.FormatBool(*c.PasswordSettings.Symbol) + } } return props |