Skip to content

Commit

Permalink
password policy update (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-lifshits authored Nov 25, 2024
1 parent 9656a4e commit 639d049
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openstack/identity/v3.0/security/GetPasswordPolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ type PasswordPolicy struct {
PasswordRequirements string `json:"password_requirements"`
// Password validity period (days).
PasswordValidityPeriod int `json:"password_validity_period"`
// Minimum number of character types that a password must contain. Value range: 2-4.
PasswordCharCombination int `json:"password_char_combination"`
}
2 changes: 2 additions & 0 deletions openstack/identity/v3.0/security/UpdatePasswordPolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ type UpdatePasswordPolicyOpts struct {
PasswordNotUsernameOrInvert *bool `json:"password_not_username_or_invert,omitempty"`
// Password validity period (days).
PasswordValidityPeriod *int `json:"password_validity_period,omitempty"`
// Minimum number of character types that a password must contain. Value range: 2-4.
PasswordCharCombination *int `json:"password_char_combination,omitempty"`
}

func UpdatePasswordPolicy(client *golangsdk.ServiceClient, id string, opts UpdatePasswordPolicyOpts) (*PasswordPolicy, error) {
Expand Down

0 comments on commit 639d049

Please sign in to comment.