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
This commit is contained in:
parent
ff13a2140f
commit
14cc9e89ab
@ -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 @@ class horizon(
|
||||
$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 @@ describe 'horizon' do
|
||||
])
|
||||
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 %>"
|
||||
|
Loading…
x
Reference in New Issue
Block a user