Menu

#99 Allow people to specify new users id

XOOPS_2.0.x
open
nobody
None
7
2012-09-25
2004-08-20
Skalpa Keo
No

From this xoops.org post:
http://www.xoops.org/modules/newbb/viewtopic.php?topic_id=16512&forum=10#forumpost69464

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.