Commit 9e03972c authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 0ebd3056
......@@ -505,7 +505,7 @@ class tx_nG6_eid {
$create_user_email = trim(t3lib_div::_GP('create_user_email'));
$create_user_title = trim(t3lib_div::_GP('create_user_title'));
$res_code = tx_nG6_db::create_new_user($user_name, $first_name, $last_name, $email, $password, $cruser_id, $group_id, $pid);
$res_code = tx_nG6_db::add_user($user_name, $first_name, $last_name, $email, $password, $cruser_id, $group_id, $pid);
if ($res_code == 0) {
// find the new user id
......
......@@ -1573,12 +1573,12 @@ class tx_nG6_db {
* @param array $user_datas the user array
* @return 0: ok, 1: username exists, 2: email exists
*/
function create_new_user($user_name, $first_name, $last_name, $email, $password, $cruser_id, $group_id, $pid){
function add_user($user_name, $first_name, $last_name, $email, $password, $cruser_id, $group_id, $pid){
// first check if username or email are unique
if (user_field_exist("username", $user_name)) {
if (tx_nG6_db::user_field_exist("username", $user_name)) {
return 1;
} else if (user_field_exist("email", $email)) {
} else if (tx_nG6_db::user_field_exist("email", $email)) {
return 2;
} else {
// Create new user
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment