more defaults for update password policy (#5170)

This commit is contained in:
Cristopher Pinzón 2022-05-26 04:30:07 -05:00 committed by GitHub
parent 5a34a6599d
commit 0d68a47c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1024,8 +1024,8 @@ class IamResponse(BaseResponse):
allow_change_password = self._get_bool_param(
"AllowUsersToChangePassword", False
)
hard_expiry = self._get_bool_param("HardExpiry")
max_password_age = self._get_int_param("MaxPasswordAge")
hard_expiry = self._get_bool_param("HardExpiry", False)
max_password_age = self._get_int_param("MaxPasswordAge", 0)
minimum_password_length = self._get_int_param("MinimumPasswordLength", 6)
password_reuse_prevention = self._get_int_param("PasswordReusePrevention")
require_lowercase_characters = self._get_bool_param(