xoops forums

shagreel

Just popping in
Posted on: 2004/2/9 17:01
shagreel
shagreel (Show more)
Just popping in
Posts: 13
Since: 2003/1/17
#1

generated user uid

I really need to be able to specify the uid of users that I create. I wonder if the code to assign a users id could be changed to something like the following.

if ($user->isNew()) {
if($user->getVar('uid'))
$uid = $user->getVar('uid');
else
$uid = $this->db->genId($this->db->prefix('users').'_uid_seq');