fixed register new user
This commit is contained in:
parent
88ad72354e
commit
7fe717b76a
@ -126,7 +126,7 @@ class RetailCrmHistory
|
||||
}
|
||||
|
||||
if ($registerNewUser === true) {
|
||||
$userPassword = uniqid();
|
||||
$userPassword = uniqid("R");
|
||||
|
||||
$arFields = array(
|
||||
"EMAIL" => $customer['email'],
|
||||
@ -137,7 +137,7 @@ class RetailCrmHistory
|
||||
);
|
||||
$registeredUserID = $newUser->Add($arFields);
|
||||
if ($registeredUserID === false) {
|
||||
RCrmActions::eventLog('RetailCrmHistory::orderHistory', 'CUser::Register', 'Error register user');
|
||||
RCrmActions::eventLog('RetailCrmHistory::orderHistory', 'CUser::Register', 'Error register user: ' . $newUser->LAST_ERROR);
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -361,7 +361,7 @@ class RetailCrmHistory
|
||||
}
|
||||
|
||||
if ($registerNewUser === true) {
|
||||
$userPassword = uniqid();
|
||||
$userPassword = uniqid("R");
|
||||
|
||||
$newUser = new CUser;
|
||||
$arFields = array(
|
||||
@ -384,7 +384,7 @@ class RetailCrmHistory
|
||||
$registeredUserID = $newUser->Add($arFields);
|
||||
|
||||
if ($registeredUserID === false) {
|
||||
RCrmActions::eventLog('RetailCrmHistory::orderHistory', 'CUser::Register', 'Error register user');
|
||||
RCrmActions::eventLog('RetailCrmHistory::orderHistory', 'CUser::Register', 'Error register user ' . $newUser->LAST_ERROR);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user