fixed bad link to node in metaconsole's custom graph item editor

Former-commit-id: 22fb4302de980d8b3e16fb90d087b71c218598a1
This commit is contained in:
alejandro-campos 2019-01-09 10:20:17 +01:00
parent 669c74c3dd
commit 471c01a4c5
2 changed files with 2 additions and 6 deletions

View File

@ -2492,7 +2492,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 <?php
} }
else { else {

View File

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