1
shagreel
generated user uid
  • 2004/2/9 17:01

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


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');