diff --git a/spec/classes/horizon_init_spec.rb b/spec/classes/horizon_init_spec.rb index c416ef84..efeaa651 100644 --- a/spec/classes/horizon_init_spec.rb +++ b/spec/classes/horizon_init_spec.rb @@ -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 diff --git a/templates/local_settings.py.erb b/templates/local_settings.py.erb index 2c015b04..767e9b1d 100644 --- a/templates/local_settings.py.erb +++ b/templates/local_settings.py.erb @@ -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__))