From cd0a0a3ca1f7bbda77762dc79ea60e88cc761e79 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 28 Sep 2015 18:14:30 +0200 Subject: [baseconfig] Mask root password if applicable --- modules/baseconfig.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/baseconfig.inc.php') 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 . ''; } + // Password field guessing + if (stripos($validator, 'password') !== false) { + $type = Property::getPasswordFieldType(); + } else { + $type = 'text'; + } // Fallback: single line input - return ''; + return ''; } } -- cgit v1.2.3-55-g7522