FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Automatically create user in an extranet
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Automatically create user in an extranet [message #18076] Wed, 05 May 2004 16:22 Go to previous message
anner is currently offline  anner   United States
Messages: 36
Registered: May 2004
Karma:
Member
I am trying to create a user in a client's extranet and create a FUD user at the same time. Then, when the user logs into the extranet and clicks on a link, they are to get logged into fud.

At the moment, if we create the user in FUD, the click to login works...the problem is creating the user when we create the user in the extranet. We can't post the same for FUD uses because we don't have the admin cookies set to do so. We have currently entered the users by doing:

$query = "insert into fud26_users (login, alias, passwd, name, email, join_date, last_read) values ('$login','$login',md5('$password'),'$name','$email','$datestamp','$datesta mp') ";
$sth=$dtools->query($dbh2,$query, 'Q1238');
$sth->finish;

#fetch the new user id
$query = "select id from fud26_users where login = '$login'";
$sth=$dtools->query($dbh2,$query);
($id)= $sth->fetchrow;
$sth->finish;

$query = "insert into fud26_group_members (user_id, group_id, group_members_opt) values ('$id','$group','3276951')";
$sth=$dtools->query($dbh2,$query);
$sth->finish;

When we try and login we get a "NO SUCH URL" error.

Please help ASAP, we were supposed to go live with this a couple of days ago. We've been struggling with it for a while.

Thanks,
Anne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: just upgraded to 2.6.4
Next Topic: new themes
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 03:43:25 GMT 2024

Total time taken to generate the page: 0.05314 seconds