From 1b5222462216707c019cb3e31f4b0598d5a00ce4 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Sat, 24 Jul 2010 00:07:59 +0000 Subject: [PATCH] BUGFIX Database password input in installer should be password, so that the password is obfuscated when input git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@108432 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- dev/install/config-form.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/install/config-form.html b/dev/install/config-form.html index 39a88a4de..e0720a127 100644 --- a/dev/install/config-form.html +++ b/dev/install/config-form.html @@ -129,7 +129,8 @@ echo '
'; if(isset($details['fields'])) foreach($details['fields'] as $fieldName => $fieldSpec) { $fieldTitle = $fieldSpec['title']; - + $fieldType = ($fieldName == 'password') ? 'password' : 'text'; + // values $defaultValue = (isset($fieldSpec['default'])) ? $fieldSpec['default'] : null; if($usingEnv && isset($fieldSpec['envVar']) && defined($fieldSpec['envVar'])) { @@ -142,7 +143,7 @@ $attrs = array( 'id' => "db_{$class}_{$fieldName}", 'class' => 'text', - 'type' => 'text', + 'type' => $fieldType, 'name' => "db[$class][$fieldName]", 'value' => $value, );