saulkarl
11-10-2015, 02:42 AM
I am using the data manager to create a new user:
$newuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
$newuser->set('username', $userInfo->first_name . ' ' . $userInfo->last_name);
$newuser->set('email', $userInfo->email);
$newuser->set('password', fetch_random_password(8));
$newuser->set('usergroupid', 2);
$newuser->pre_save();
if (empty($newuser->errors)) {
$userId = $newuser->save();
}
However, after I login with this new user, there's a message:
Your user name may be same as your email address. To avoid leaking your email address.
But the username is clearly not the same as the email address.
I am not able to find this message in the code so I suspect this message is stored in the db somewhere.
What is the proper way to create a new user without this message showing up upon login? Sorry I am very new to vbulletin programming.
$newuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
$newuser->set('username', $userInfo->first_name . ' ' . $userInfo->last_name);
$newuser->set('email', $userInfo->email);
$newuser->set('password', fetch_random_password(8));
$newuser->set('usergroupid', 2);
$newuser->pre_save();
if (empty($newuser->errors)) {
$userId = $newuser->save();
}
However, after I login with this new user, there's a message:
Your user name may be same as your email address. To avoid leaking your email address.
But the username is clearly not the same as the email address.
I am not able to find this message in the code so I suspect this message is stored in the db somewhere.
What is the proper way to create a new user without this message showing up upon login? Sorry I am very new to vbulletin programming.