Permalink
Browse files

Manage enforce_password_check

By setting ENFORCE_PASSWORD_CHECK to `True`, it displays 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.

Change-Id: If7af97df7a011569a7e14fbab4f880688d7b82c3
Related-Bug: #1640806
  • Loading branch information...
lukehinds committed Nov 15, 2016
1 parent ff13a21 commit 14cc9e89ab29b8c8bfc4e7664ff786a35253eee2
View
@@ -289,6 +289,10 @@
# (optional) Disables the use of reveal button for passwords in the UI.
# Defaults to false
#
# [*enforce_password_check*]
# (optional) Disables Admin password prompt on Change Password form.
# Defaults to false
#
# === DEPRECATED group/name
#
# [*fqdn*]
@@ -386,6 +390,7 @@
$images_panel = 'legacy',
$password_retrieve = false,
$disable_password_reveal = false,
$enforce_password_check = false,
# DEPRECATED PARAMETERS
$custom_theme_path = undef,
$fqdn = undef,
@@ -0,0 +1,3 @@
---
features:
- Added ability to configure enforce_password_check
@@ -427,6 +427,20 @@
])
end
end
context 'with enforce password check enabled' do
before do
params.merge!({
:enforce_password_check => true
})
end
it 'enforce_password_check is configured' do
verify_concat_fragment_contents(catalogue, 'local_settings.py', [
'HORIZON_CONFIG["enforce_password_check"] = True',
])
end
end
end
shared_examples_for 'horizon on RedHat' do
@@ -140,6 +140,14 @@ HORIZON_CONFIG["password_autocomplete"] = "<%= @password_autocomplete %>"
HORIZON_CONFIG["disable_password_reveal"] = True
<% end %>
# 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
<% if @enforce_password_check == true %>
HORIZON_CONFIG["enforce_password_check"] = True
<% end %>
# Configure enabled image panel. It can be legacy or angular.
#HORIZON_CONFIG["images_panel"] = "legacy"
HORIZON_CONFIG["images_panel"] = "<%= @images_panel %>"

0 comments on commit 14cc9e8

Please sign in to comment.