ENFORCE_PASSWORD_CHECK is a standalone setting

... , not in HORIZON_CONFIG

Change-Id: Ic53612971f8e8d88e3f052583c5f4dba42c4a113
This commit is contained in:
Radomir Dopieralski 2023-05-09 14:47:17 +02:00 committed by Takashi Kajinami
parent 92950a690d
commit 910420589e
2 changed files with 3 additions and 3 deletions

View File

@ -620,7 +620,7 @@ describe 'horizon' do
it 'enforce_password_check is configured' do
verify_concat_fragment_contents(catalogue, 'local_settings.py', [
'HORIZON_CONFIG["enforce_password_check"] = True',
'ENFORCE_PASSWORD_CHECK = True',
])
end
end

View File

@ -181,9 +181,9 @@ HORIZON_CONFIG["disable_password_reveal"] = True
# Set this to True to display an 'Admin Password' field on the Change Password
# form to verify that it is indeed the admin logged-in who wants to change the
# password
#HORIZON_CONFIG["enforce_password_check"] = False
#ENFORCE_PASSWORD_CHECK = False
<% if @enforce_password_check -%>
HORIZON_CONFIG["enforce_password_check"] = True
ENFORCE_PASSWORD_CHECK = True
<% end -%>
LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))