Im adding users from a form on a different server than the one EE is installed on and im not sure what is used to generate the unique_id, or is it just a completely randomly generated string or uses a combination of things in a sha hash? Thanks.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
May 29, 2009 5:42pm
Subscribe [2]#1 / May 29, 2009 5:42pm
Im adding users from a form on a different server than the one EE is installed on and im not sure what is used to generate the unique_id, or is it just a completely randomly generated string or uses a combination of things in a sha hash? Thanks.
#2 / May 29, 2009 6:19pm
in “system/cp/cp.member_import.php”
/** -------------------------------------
/** Add a unique_id for each member
/** -------------------------------------*/
$data['unique_id'] = $FNS->random('encrypt');
/* -------------------------------------
/* See if we've already imported a member with this member_id -
/* could possibly occur if an auto_increment value is used
/* before a specified member_id.
/* -------------------------------------*/It calls the function class
/** -------------------------------------------------
/** Random number/password generator
/** -------------------------------------------------*/
function random($type = 'encrypt', $len = 8)
{
...Which is in “system/core/core.functions.php” line 367
I did a few tests and as long as you something in there it dose not seem to fail.
When i left it blank i could not log in to the CP.
Hope that helps
#3 / May 29, 2009 6:53pm
awesome, thanks a ton!!