Fix user form reset if profile fails

This commit is contained in:
Calvo 2022-09-22 17:07:43 +02:00
parent c34328583f
commit eed28bc668
1 changed files with 8 additions and 0 deletions

View File

@ -512,6 +512,14 @@ if ($create_user) {
$result_profile = profile_create_user_profile($id, $profile2, $group2, false, $tags, $no_hierarchy);
if ($result_profile === false) {
$is_err = true;
$user_info = $values;
$password_new = '';
$password_confirm = '';
$new_user = true;
}
ui_print_result_message(
$result_profile,
__('Profile added successfully'),