mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 12:19:37 -06:00
the variables renaming
This commit is contained in:
@@ -76,9 +76,9 @@ Note that a password can have a maximum length of **72 bytes**. Depending on the
|
||||
|
||||
- `FRONTEND_PASSWORD_POLICIES_MIN_CHARACTERS`
|
||||
Define the minimum password length.
|
||||
- `FRONTEND_PASSWORD_POLICIES_MIN_LOWER_CASE_CHARACTERS`
|
||||
- `FRONTEND_PASSWORD_POLICIES_MIN_LOWERCASE_CHARACTERS`
|
||||
Define the minimum number of uppercase letters.
|
||||
- `FRONTEND_PASSWORD_POLICIES_MIN_UPPER_CASE_CHARACTERS`
|
||||
- `FRONTEND_PASSWORD_POLICIES_MIN_UPPERCASE_CHARACTERS`
|
||||
Define the minimum number of lowercase letters.
|
||||
- `FRONTEND_PASSWORD_POLICIES_MIN_DIGITS`
|
||||
Define the minimum number of digits.
|
||||
|
||||
@@ -177,8 +177,8 @@ type ServiceAccount struct {
|
||||
// PasswordPolicies configures reva password policies
|
||||
type PasswordPolicies struct {
|
||||
MinCharacters int `yaml:"min_characters,omitempty" env:"FRONTEND_PASSWORD_POLICIES_MIN_CHARACTERS" desc:"Define the minimum password length. Defaults to 0 if not set."`
|
||||
MinLowerCaseCharacters int `yaml:"min_lower_case_characters" env:"FRONTEND_PASSWORD_POLICIES_MIN_LOWER_CASE_CHARACTERS" desc:"Define the minimum number of uppercase letters. Defaults to 0 if not set."`
|
||||
MinUpperCaseCharacters int `yaml:"min_upper_case_characters" env:"FRONTEND_PASSWORD_POLICIES_MIN_UPPER_CASE_CHARACTERS" desc:"Define the minimum number of lowercase letters. Defaults to 0 if not set."`
|
||||
MinLowerCaseCharacters int `yaml:"min_lowercase_characters" env:"FRONTEND_PASSWORD_POLICIES_MIN_LOWERCASE_CHARACTERS" desc:"Define the minimum number of uppercase letters. Defaults to 0 if not set."`
|
||||
MinUpperCaseCharacters int `yaml:"min_uppercase_characters" env:"FRONTEND_PASSWORD_POLICIES_MIN_UPPERCASE_CHARACTERS" desc:"Define the minimum number of lowercase letters. Defaults to 0 if not set."`
|
||||
MinDigits int `yaml:"min_digits" env:"FRONTEND_PASSWORD_POLICIES_MIN_DIGITS" desc:"Define the minimum number of digits. Defaults to 0 if not set."`
|
||||
MinSpecialCharacters int `yaml:"min_special_characters" env:"FRONTEND_PASSWORD_POLICIES_MIN_SPECIAL_CHARACTERS" desc:"Define the minimum number of characters from the special characters list to be present. Defaults to 0 if not set."`
|
||||
}
|
||||
|
||||
@@ -275,12 +275,12 @@ func FrontendConfigFromStruct(cfg *config.Config) (map[string]interface{}, error
|
||||
"max_quota": cfg.MaxQuota,
|
||||
},
|
||||
"password_policies": map[string]interface{}{
|
||||
"max_characters": 72,
|
||||
"min_characters": cfg.PasswordPolicies.MinCharacters,
|
||||
"min_lower_case_characters": cfg.PasswordPolicies.MinLowerCaseCharacters,
|
||||
"min_upper_case_characters": cfg.PasswordPolicies.MinUpperCaseCharacters,
|
||||
"min_digits": cfg.PasswordPolicies.MinDigits,
|
||||
"min_special_characters": cfg.PasswordPolicies.MinSpecialCharacters,
|
||||
"max_characters": 72,
|
||||
"min_characters": cfg.PasswordPolicies.MinCharacters,
|
||||
"min_lowercase_characters": cfg.PasswordPolicies.MinLowerCaseCharacters,
|
||||
"min_uppercase_characters": cfg.PasswordPolicies.MinUpperCaseCharacters,
|
||||
"min_digits": cfg.PasswordPolicies.MinDigits,
|
||||
"min_special_characters": cfg.PasswordPolicies.MinSpecialCharacters,
|
||||
},
|
||||
"notifications": map[string]interface{}{
|
||||
"endpoints": []string{"list", "get", "delete"},
|
||||
|
||||
Reference in New Issue
Block a user