Merge branch 'ent-11163-cambiar-la-forma-en-la-que-se-generan-las-graficas-para-la-macro-de-envio-por-correo' into 'develop'
Ent-11163-cambiar-la-forma-en-la-que-se-generan-las-graficas-para-la-macro-de-envio-por-correo Closes pandora_enterprise#11163 See merge request artica/pandorafms!6234
This commit is contained in:
commit
bff3fcd762
|
@ -129,6 +129,15 @@ if (empty($apiPassword) === true
|
||||||
// Compat.
|
// Compat.
|
||||||
$config['id_user'] = 'admin';
|
$config['id_user'] = 'admin';
|
||||||
$correctLogin = true;
|
$correctLogin = true;
|
||||||
|
// Bypass credentials if server-auth and api-pass are correct.
|
||||||
|
} else if (($config['server_unique_identifier'] === get_parameter('server_auth'))
|
||||||
|
&& ($api_password === $apiPassword)
|
||||||
|
&& ((bool) isInACL($ipOrigin) === true)) {
|
||||||
|
|
||||||
|
$config['id_usuario'] = 'admin';
|
||||||
|
$config['id_user'] = 'admin';
|
||||||
|
$correctLogin = true;
|
||||||
|
|
||||||
} else if ((bool) isInACL($ipOrigin) === true) {
|
} else if ((bool) isInACL($ipOrigin) === true) {
|
||||||
// External access.
|
// External access.
|
||||||
// Token is valid. Bypass the credentials.
|
// Token is valid. Bypass the credentials.
|
||||||
|
|
|
@ -1561,8 +1561,7 @@ sub pandora_execute_action ($$$$$$$$$;$$) {
|
||||||
|
|
||||||
my $params = {};
|
my $params = {};
|
||||||
$params->{"apipass"} = $pa_config->{"console_api_pass"};
|
$params->{"apipass"} = $pa_config->{"console_api_pass"};
|
||||||
$params->{"user"} ||= $pa_config->{"console_user"};
|
$params->{"server_auth"} = $pa_config->{"server_unique_identifier"};
|
||||||
$params->{"pass"} ||= $pa_config->{"console_pass"};
|
|
||||||
$params->{"op"} = "get";
|
$params->{"op"} = "get";
|
||||||
$params->{"op2"} = "module_graph";
|
$params->{"op2"} = "module_graph";
|
||||||
$params->{"id"} = $module->{'id_agente_modulo'};
|
$params->{"id"} = $module->{'id_agente_modulo'};
|
||||||
|
@ -1707,8 +1706,7 @@ sub pandora_execute_action ($$$$$$$$$;$$) {
|
||||||
|
|
||||||
my $params = {};
|
my $params = {};
|
||||||
$params->{"apipass"} = $pa_config->{"console_api_pass"};
|
$params->{"apipass"} = $pa_config->{"console_api_pass"};
|
||||||
$params->{"user"} ||= $pa_config->{"console_user"};
|
$params->{"server_auth"} = $pa_config->{"server_unique_identifier"};
|
||||||
$params->{"pass"} ||= $pa_config->{"console_pass"};
|
|
||||||
$params->{"op"} = "set";
|
$params->{"op"} = "set";
|
||||||
$params->{"op2"} = "send_report";
|
$params->{"op2"} = "send_report";
|
||||||
$params->{"other_mode"} = "url_encode_separator_|;|";
|
$params->{"other_mode"} = "url_encode_separator_|;|";
|
||||||
|
@ -1739,8 +1737,7 @@ sub pandora_execute_action ($$$$$$$$$;$$) {
|
||||||
|
|
||||||
my $params = {};
|
my $params = {};
|
||||||
$params->{"apipass"} = $pa_config->{"console_api_pass"};
|
$params->{"apipass"} = $pa_config->{"console_api_pass"};
|
||||||
$params->{"user"} ||= $pa_config->{"console_user"};
|
$params->{"server_auth"} = $pa_config->{"server_unique_identifier"};
|
||||||
$params->{"pass"} ||= $pa_config->{"console_pass"};
|
|
||||||
$params->{"op"} = "set";
|
$params->{"op"} = "set";
|
||||||
$params->{"op2"} = "send_report";
|
$params->{"op2"} = "send_report";
|
||||||
$params->{"other_mode"} = "url_encode_separator_|;|";
|
$params->{"other_mode"} = "url_encode_separator_|;|";
|
||||||
|
|
Loading…
Reference in New Issue