Skip to content

Commit a83430e

Browse files
Admin: User import: Add ID and username of the user that already exists with the same email to the CSV
Co-authored-by: Juan Cortizas Ponte <124381395+juancpbinario@users.noreply.github.com>
1 parent 57ed574 commit a83430e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/admin/user_import.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ function validate_data($users, $checkUniqueEmail = false)
153153
} else {
154154
$userFromEmail = api_get_user_info_from_email($user['Email']);
155155
if (!empty($userFromEmail)) {
156+
$user['id'] = $userFromEmail['id'];
157+
$user['UserName'] = $userFromEmail['username'];
156158
$user['message'] .= Display::return_message(get_lang('EmailUsedTwice'), 'warning');
157159
$user['has_error'] = true;
158160
} else {

0 commit comments

Comments
 (0)