Automatically create user in an extranet [message #18076] |
Wed, 05 May 2004 16:22 |
anner
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
|
|
|