Fixed two times encription on wmi module pass
This commit is contained in:
parent
36d15f3de5
commit
1422e076ac
|
@ -622,7 +622,10 @@ function modules_create_agent_module(
|
|||
|
||||
// Encrypt passwords.
|
||||
if (isset($values['plugin_pass'])) {
|
||||
$values['plugin_pass'] = io_input_password($values['plugin_pass']);
|
||||
// Avoid two times encryption
|
||||
$plugin_pass = io_safe_output($values['plugin_pass']);
|
||||
|
||||
$values['plugin_pass'] = io_input_password($plugin_pass);
|
||||
}
|
||||
|
||||
// Encrypt SNMPv3 passwords.
|
||||
|
|
Loading…
Reference in New Issue