diff options
author | Simon Rettberg | 2015-09-28 18:14:30 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-09-28 18:14:30 +0200 |
commit | cd0a0a3ca1f7bbda77762dc79ea60e88cc761e79 (patch) | |
tree | d978343019cc66f58dc4fe0c25533df68958a676 /modules/baseconfig.inc.php | |
parent | Improved several translations, added help texts, fixed module grouping, layout (diff) | |
download | slx-admin-cd0a0a3ca1f7bbda77762dc79ea60e88cc761e79.tar.gz slx-admin-cd0a0a3ca1f7bbda77762dc79ea60e88cc761e79.tar.xz slx-admin-cd0a0a3ca1f7bbda77762dc79ea60e88cc761e79.zip |
[baseconfig] Mask root password if applicable
Diffstat (limited to 'modules/baseconfig.inc.php')
-rw-r--r-- | modules/baseconfig.inc.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/baseconfig.inc.php b/modules/baseconfig.inc.php index fb18df6b..152e3372 100644 --- a/modules/baseconfig.inc.php +++ b/modules/baseconfig.inc.php @@ -114,8 +114,14 @@ class Page_BaseConfig extends Page } return $ret . '</select>'; } + // Password field guessing + if (stripos($validator, 'password') !== false) { + $type = Property::getPasswordFieldType(); + } else { + $type = 'text'; + } // Fallback: single line input - return '<input type="text" name="setting[' . $setting . ']" class="form-control" size="30" value="' . $current . '">'; + return '<input type="' . $type . '" name="setting[' . $setting . ']" class="form-control" size="30" value="' . $current . '">'; } } |