diff options
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 . '">'; } } |