Default Settings: Obfuscate sensitive values.

This commit is contained in:
Nate Jones
2015-05-01 07:12:07 +00:00
parent 6f396ca5c6
commit ffebf944f9
2 changed files with 3 additions and 13 deletions

View File

@@ -403,10 +403,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
echo " </select>\n";
}
elseif ($category == "email" && $subcategory == "smtp_password" && $name == "var" ) {
echo " <input class='formfld' type='password' name='default_setting_value' onmouseover=\"this.type='text';\" onfocus=\"this.type='text';\" onmouseout=\"if (!$(this).is(':focus')) { this.type='password'; }\" onblur=\"this.type='password';\" maxlength='255' value=\"".$default_setting_value."\">\n";
}
elseif ($category == "provision" && $subcategory == "password" && $name == "var" ) {
elseif (substr_count(strtolower($subcategory), '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
echo " <input class='formfld' type='password' name='default_setting_value' onmouseover=\"this.type='text';\" onfocus=\"this.type='text';\" onmouseout=\"if (!$(this).is(':focus')) { this.type='password'; }\" onblur=\"this.type='password';\" maxlength='255' value=\"".$default_setting_value."\">\n";
}
elseif (