mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: use password type for SMTP Auth #5051
This commit is contained in:
committed by
Neil Lathwood
parent
7553e771a6
commit
48b0e53a54
@@ -1212,6 +1212,11 @@ function generate_dynamic_config_panel($title, $config_groups, $items = array(),
|
|||||||
<input id="'.$item['name'].'" class="form-control" type="text" name="global-config-input" value="'.$config_groups[$item['name']]['config_value'].'" data-config_id="'.$config_groups[$item['name']]['config_id'].'">
|
<input id="'.$item['name'].'" class="form-control" type="text" name="global-config-input" value="'.$config_groups[$item['name']]['config_value'].'" data-config_id="'.$config_groups[$item['name']]['config_id'].'">
|
||||||
<span class="form-control-feedback"><i class="fa" aria-hidden="true"></i></span>
|
<span class="form-control-feedback"><i class="fa" aria-hidden="true"></i></span>
|
||||||
';
|
';
|
||||||
|
} elseif ($item['type'] == 'password') {
|
||||||
|
$output .= '
|
||||||
|
<input id="'.$item['name'].'" class="form-control" type="password" name="global-config-input" value="'.$config_groups[$item['name']]['config_value'].'" data-config_id="'.$config_groups[$item['name']]['config_id'].'">
|
||||||
|
<span class="form-control-feedback"><i class="fa" aria-hidden="true"></i></span>
|
||||||
|
';
|
||||||
} elseif ($item['type'] == 'numeric') {
|
} elseif ($item['type'] == 'numeric') {
|
||||||
$output .= '
|
$output .= '
|
||||||
<input id="'.$item['name'].'" class="form-control" onkeypress="return (event.charCode == 8 || event.charCode == 0) ? null : event.charCode >= 48 && event.charCode <= 57" type="text" name="global-config-input" value="'.$config_groups[$item['name']]['config_value'].'" data-config_id="'.$config_groups[$item['name']]['config_id'].'">
|
<input id="'.$item['name'].'" class="form-control" onkeypress="return (event.charCode == 8 || event.charCode == 0) ? null : event.charCode >= 48 && event.charCode <= 57" type="text" name="global-config-input" value="'.$config_groups[$item['name']]['config_value'].'" data-config_id="'.$config_groups[$item['name']]['config_id'].'">
|
||||||
|
@@ -288,7 +288,7 @@ $mail_conf = array(
|
|||||||
),
|
),
|
||||||
array('name' => 'email_smtp_password',
|
array('name' => 'email_smtp_password',
|
||||||
'descr' => 'SMTP Authentication Password',
|
'descr' => 'SMTP Authentication Password',
|
||||||
'type' => 'text',
|
'type' => 'password',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user