Default/Domain/User Settings - List & Edit: Do not mask new input_text_font_password setting.
This commit is contained in:
parent
42c96239c8
commit
a482326930
|
|
@ -518,7 +518,7 @@
|
|||
echo " <option value='textarea' ".($default_setting_value == "textarea" ? "selected='selected'" : null).">TextArea</option>\n";
|
||||
echo " </select>\n";
|
||||
}
|
||||
elseif ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
|
||||
elseif ($subcategory == 'password' || (substr_count($subcategory, '_password') > 0 && $subcategory != 'input_text_font_password') || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
|
||||
echo " <input class='formfld password' type='password' id='default_setting_value' 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=\"".escape($default_setting_value)."\">\n";
|
||||
}
|
||||
elseif (substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
|
||||
|
|
|
|||
|
|
@ -529,7 +529,7 @@
|
|||
else if ($category == 'theme' && $subcategory == 'custom_css_code' && $name == 'text') {
|
||||
echo " [...]\n";
|
||||
}
|
||||
else if ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || substr_count($subcategory, '_key') > 0 || substr_count($subcategory, '_secret') > 0) {
|
||||
else if ($subcategory == 'password' || (substr_count($subcategory, '_password') > 0 && $subcategory != 'input_text_font_password') || substr_count($subcategory, '_key') > 0 || substr_count($subcategory, '_secret') > 0) {
|
||||
echo " ".str_repeat('*', 10); //use the same number of characters to mask the password length
|
||||
}
|
||||
else if ($category == 'theme' && $subcategory == 'button_icons' && $name == 'text') {
|
||||
|
|
|
|||
|
|
@ -565,7 +565,7 @@
|
|||
echo " <option value='textarea' ".($domain_setting_value == "textarea" ? "selected='selected'" : null).">TextArea</option>\n";
|
||||
echo " </select>\n";
|
||||
}
|
||||
elseif ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
|
||||
elseif ($subcategory == 'password' || (substr_count($subcategory, '_password') > 0 && $subcategory != 'input_text_font_password') || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
|
||||
echo " <input class='formfld password' type='password' id='domain_setting_value' name='domain_setting_value' maxlength='255' onmouseover=\"this.type='text';\" onfocus=\"this.type='text';\" onmouseout=\"if (!$(this).is(':focus')) { this.type='password'; }\" onblur=\"this.type='password';\" value=\"".escape($row['domain_setting_value'])."\">\n";
|
||||
}
|
||||
elseif ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
|
||||
|
|
|
|||
|
|
@ -320,7 +320,7 @@
|
|||
) {
|
||||
echo " ".$text['label-'.escape($row['domain_setting_value'])];
|
||||
}
|
||||
else if ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || substr_count($subcategory, '_key') || substr_count($subcategory, '_secret') > 0) {
|
||||
else if ($subcategory == 'password' || (substr_count($subcategory, '_password') > 0 && $subcategory != 'input_text_font_password') || substr_count($subcategory, '_key') || substr_count($subcategory, '_secret') > 0) {
|
||||
echo " ".str_repeat('*', strlen(escape($row['domain_setting_value'])));
|
||||
}
|
||||
else if ($category == 'theme' && $subcategory == 'button_icons' && $name == 'text') {
|
||||
|
|
|
|||
|
|
@ -544,7 +544,7 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) {
|
|||
echo " <option value='textarea' ".($user_setting_value == "textarea" ? "selected='selected'" : null).">TextArea</option>\n";
|
||||
echo " </select>\n";
|
||||
}
|
||||
else if ($user_setting_subcategory == 'password' || substr_count($user_setting_subcategory, '_password') > 0 || $user_setting_category == "login" && $user_setting_subcategory == "password_reset_key" && $user_setting_name == "text") {
|
||||
else if ($user_setting_subcategory == 'password' || (substr_count($user_setting_subcategory, '_password') > 0 && $user_setting_subcategory != 'input_text_font_password') || $user_setting_category == "login" && $user_setting_subcategory == "password_reset_key" && $user_setting_name == "text") {
|
||||
echo " <input class='formfld password' type='password' id='user_setting_value' name='user_setting_value' maxlength='255' onmouseover=\"this.type='text';\" onfocus=\"this.type='text';\" onmouseout=\"if (!$(this).is(':focus')) { this.type='password'; }\" onblur=\"this.type='password';\" value=\"".escape($user_setting_value)."\">\n";
|
||||
}
|
||||
else if ($user_setting_category == "theme" && substr_count($user_setting_subcategory, "_color") > 0 && ($user_setting_name == "text" || $user_setting_name == 'array')) {
|
||||
|
|
|
|||
|
|
@ -320,7 +320,7 @@
|
|||
) {
|
||||
echo " ".$text['label-'.escape($row['user_setting_value'])];
|
||||
}
|
||||
else if ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || substr_count($subcategory, '_key') || substr_count($subcategory, '_secret') > 0) {
|
||||
else if ($subcategory == 'password' || (substr_count($subcategory, '_password') > 0 && $subcategory != 'input_text_font_password') || substr_count($subcategory, '_key') || substr_count($subcategory, '_secret') > 0) {
|
||||
echo " ".str_repeat('*', strlen(escape($row['user_setting_value'])));
|
||||
}
|
||||
else if ($category == 'theme' && $subcategory == 'button_icons' && $name == 'text') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue