Merge branch '2536-Error-login-hash-al-editar-una-custom-graph-desde-la-meta' into 'develop'

ent-2536-Error-login-hash-al-editar-una-custom-graph-desde-la-meta

See merge request artica/pandorafms!2111

Former-commit-id: b9770bc97e741d6e6d7b0ab111c195ac3fe440df
This commit is contained in:
Daniel Rodriguez 2019-02-18 12:16:55 +01:00
commit 59cd0a43ea
2 changed files with 2 additions and 7 deletions

View File

@ -2720,7 +2720,7 @@ function edit_custom_graph() {
}
});
window.location.href = server_url + "/index.php?sec=reporting&sec2=godmode/reporting/graph_builder&edit_graph=1&id=" + id_element_graph + hash_data;
window.location.href = server_url + "index.php?sec=reporting&sec2=godmode/reporting/graph_builder&edit_graph=1&id=" + id_element_graph + hash_data;
<?php
} else {
?>

View File

@ -198,12 +198,7 @@ if ($get_metaconsole_hash_data) {
$console_password = $auth_serialized['console_password'];
}
$pwd = $auth_token;
// Create HASH login info
$user = str_rot13($config['id_user']);
$hashdata = $user.$pwd;
$hashdata = md5($hashdata);
$url_hash = "&loginhash=auto&loginhash_data=$hashdata&loginhash_user=$user";
$url_hash = metaconsole_get_servers_url_hash($server);
echo $url_hash;
return;