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:
Daniel Rodriguez 2020-05-20 16:51:26 +02:00
commit e90dcde378
1 changed files with 4 additions and 1 deletions

View File

@ -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.