Permalink
Browse files

Manage disable_password_reveal

A user can disable the password reveal button in the horizon UI via the
configuration. This change adds the ability to toggle this to True via
the puppet modules.

Change-Id: Iacf899d595a2a3c522df1b96ca527731937ec698
Related-Bug: #1640492
  • Loading branch information...
mwhahaha committed Nov 9, 2016
1 parent 0e28cea commit ff13a2140fae8561e9caff999c80beced3091be5
View
@@ -285,6 +285,10 @@
# (optional) Enables the use of 'Retrieve Password' in the Horizon Web UI.
# Defaults to false
#
# [*disable_password_reveal*]
# (optional) Disables the use of reveal button for passwords in the UI.
# Defaults to false
#
# === DEPRECATED group/name
#
# [*fqdn*]
@@ -381,6 +385,7 @@
$password_autocomplete = 'off',
$images_panel = 'legacy',
$password_retrieve = false,
$disable_password_reveal = false,
# DEPRECATED PARAMETERS
$custom_theme_path = undef,
$fqdn = undef,
@@ -0,0 +1,3 @@
---
features:
- Added ability to configure disable_password_reveal
@@ -413,6 +413,20 @@
])
end
end
context 'with disable password reveal enabled' do
before do
params.merge!({
:disable_password_reveal => true
})
end
it 'disable_password_reveal is configured' do
verify_concat_fragment_contents(catalogue, 'local_settings.py', [
'HORIZON_CONFIG["disable_password_reveal"] = True',
])
end
end
end
shared_examples_for 'horizon on RedHat' do
@@ -136,6 +136,9 @@ HORIZON_CONFIG["password_autocomplete"] = "<%= @password_autocomplete %>"
# Setting this to True will disable the reveal button for password fields,
# including on the login form.
#HORIZON_CONFIG["disable_password_reveal"] = False
<% if @disable_password_reveal == true %>
HORIZON_CONFIG["disable_password_reveal"] = True
<% end %>
# Configure enabled image panel. It can be legacy or angular.
#HORIZON_CONFIG["images_panel"] = "legacy"

0 comments on commit ff13a21

Please sign in to comment.