Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
ng6
Commits
9e03972c
Commit
9e03972c
authored
Sep 12, 2012
by
Jerome Mariette
Browse files
No commit message
No commit message
parent
0ebd3056
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/nG6/class.tx_nG6_eid.php
View file @
9e03972c
...
...
@@ -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
...
...
ui/nG6/lib/class.tx_nG6_db.php
View file @
9e03972c
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment