Modify aditional user/pass on core.
This commit is contained in:
parent
d17d3bd3eb
commit
356a3cc9c3
|
@ -130,8 +130,7 @@ if (empty($apiPassword) === true
|
|||
$config['id_user'] = 'admin';
|
||||
$correctLogin = true;
|
||||
// Bypass credentials if server-auth and api-pass are correct.
|
||||
} else if (($op === 'get')
|
||||
&& ($config['server_unique_identifier'] === get_parameter('server_auth'))
|
||||
} else if (($config['server_unique_identifier'] === get_parameter('server_auth'))
|
||||
&& ($api_password === $apiPassword)
|
||||
&& ((bool) isInACL($ipOrigin) === true)) {
|
||||
|
||||
|
|
|
@ -1561,8 +1561,7 @@ sub pandora_execute_action ($$$$$$$$$;$$) {
|
|||
|
||||
my $params = {};
|
||||
$params->{"apipass"} = $pa_config->{"console_api_pass"};
|
||||
$params->{"user"} ||= $pa_config->{"console_user"};
|
||||
$params->{"pass"} ||= $pa_config->{"console_pass"};
|
||||
$params->{"server_auth"} = $pa_config->{"server_unique_identifier"};
|
||||
$params->{"op"} = "get";
|
||||
$params->{"op2"} = "module_graph";
|
||||
$params->{"id"} = $module->{'id_agente_modulo'};
|
||||
|
|
Loading…
Reference in New Issue