diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index 91b3ba7fcf..38ee4f297e 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -101,6 +101,7 @@ $id = get_parameter('id', get_parameter('id_user', '')); $pure = get_parameter('pure', 0); $user_info = get_user_info($id); +$is_err = false; if (! check_acl($config['id_user'], 0, 'UM')) { db_pandora_audit( @@ -370,23 +371,27 @@ if ($create_user) { if ($id == '') { ui_print_error_message(__('User ID cannot be empty')); + $is_err = true; $user_info = $values; $password_new = ''; $password_confirm = ''; $new_user = true; } else if (preg_match('/^\s+|\s+$/', io_safe_output($id))) { ui_print_error_message(__('Invalid user ID: leading or trailing blank spaces not allowed')); + $is_err = true; $user_info = $values; $password_new = ''; $password_confirm = ''; $new_user = true; } else if ($password_new == '') { + $is_err = true; ui_print_error_message(__('Passwords cannot be empty')); $user_info = $values; $password_new = ''; $password_confirm = ''; $new_user = true; } else if ($password_new != $password_confirm) { + $is_err = true; ui_print_error_message(__('Passwords didn\'t match')); $user_info = $values; $password_new = ''; @@ -1160,13 +1165,17 @@ if (is_metaconsole()) { $access_or_pagination = $size_pagination; } +if ($id != '' && !$is_err) { + $div_user_info = '
'.$avatar.$user_id_create.'
+
'.$user_id_update_view.$full_name.$new_pass.$new_pass_confirm.$global_profile.'
'; +} else { + $div_user_info = '
'.$avatar.'
+
'.$user_id_create.$user_id_update_view.$full_name.$new_pass.$new_pass_confirm.$global_profile.'
'; +} echo '
- +

Extra info

'.$email.$phone.$not_login.$session_time.'