Merge branch 'ent-5732-error-password-wmi-module' into 'develop'
Fixed two times encription on wmi module pass See merge request artica/pandorafms!3206
This commit is contained in:
commit
e90dcde378
|
@ -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