diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index fe8c781be5..25f5ae5a87 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -29,7 +29,7 @@ // Load global vars. global $config; - +hd($_REQUEST, true); check_login(); require_once $config['homedir'].'/vendor/autoload.php'; @@ -1836,7 +1836,6 @@ if (is_metaconsole() === true) { include_once 'user_management.php'; } -echo ''; if ((bool) $config['admin_can_add_user'] === true) { html_print_csrf_hidden(); @@ -1848,6 +1847,8 @@ if ($new_user === true) { html_print_input_hidden('json_profile', $json_profile); } +echo ''; + echo ''; echo ''; diff --git a/pandora_console/include/functions_profile.php b/pandora_console/include/functions_profile.php index 7d8e15bf2f..a2eb45a3a2 100644 --- a/pandora_console/include/functions_profile.php +++ b/pandora_console/include/functions_profile.php @@ -117,9 +117,7 @@ function profile_create_user_profile( 'assigned_by' => $assign, 'no_hierarchy' => $no_hierarchy ? 1 : 0, ]; - hd('inicio insert', true); - hd($insert, true); - hd('final insert', true); + return db_process_sql_insert('tusuario_perfil', $insert); }