From 0d68a47c2b0b12ef78ef5176ba1edef3f1ed2604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristopher=20Pinz=C3=B3n?= Date: Thu, 26 May 2022 04:30:07 -0500 Subject: [PATCH] more defaults for update password policy (#5170) --- moto/iam/responses.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/iam/responses.py b/moto/iam/responses.py index eea1d9950..c203921c7 100644 --- a/moto/iam/responses.py +++ b/moto/iam/responses.py @@ -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(