Always return 'HardExpiry' for account password policy. (#3117)

Co-authored-by: Nick B Gander <NGANDER@amfam.com>
This commit is contained in:
ngander64 2020-07-11 03:38:33 -05:00 committed by GitHub
parent 766f527d37
commit 069c159492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -2423,9 +2423,7 @@ GET_ACCOUNT_PASSWORD_POLICY_TEMPLATE = """<GetAccountPasswordPolicyResponse xmln
<PasswordPolicy>
<AllowUsersToChangePassword>{{ password_policy.allow_users_to_change_password | lower }}</AllowUsersToChangePassword>
<ExpirePasswords>{{ password_policy.expire_passwords | lower }}</ExpirePasswords>
{% if password_policy.hard_expiry %}
<HardExpiry>{{ password_policy.hard_expiry | lower }}</HardExpiry>
{% endif %}
{% if password_policy.max_password_age %}
<MaxPasswordAge>{{ password_policy.max_password_age }}</MaxPasswordAge>
{% endif %}

View File

@ -2608,6 +2608,7 @@ def test_update_account_password_policy():
"RequireNumbers": False,
"RequireSymbols": False,
"RequireUppercaseCharacters": False,
"HardExpiry": False,
}
)