On Thu, Mar 08, 2001 at 12:06:48PM +0100, David Guerizec mentioned:
> Why do you create twice ?
> This code will create an empty person, then will create the person...
Actually, this is the code I'm using;
$person = mgd_get_person();
$person->username=$per_username;
$person->firstname=$per_firstname;
$person->password=$per_password;
$person->lastname=$per_lastname;
$person->birthdate=$per_date;
$person->street=$per_street;
$person->city=$per_city;
$person->homephone=$per_homephone;
$person->handphone=$per_handphone;
$person->workphone=$per_workphone;
$person->homepage=$per_homepage;
$person->email=$per_email;
$person->pgpkey=$per_pgpkey;
$person->extra=$per_extra;
if($person->create()) {
echo "Create of $per_username worked!\n";
} else {
echo "Failed to create an account for $per_username<P>\n";
}
And, it's not working 100%. I'm thinking it has something to do with the fact
that it's not running as "admin", but as the "john" user (who is an admin
on that area).
I was hoping that people could just go to this page, and register an
account for themeselves. Can I do this in anyway, except to hardcode a
call to mgd_auth_midgard() as the admin user ?
Kate
--
When I say 'free', I mean 'free': free from bond, of chain or command:
to go where you will, even to Mordor, Saruman, if you desire. "
-- Gandalf, paraphrasing the choice between Free and Non-free software
PGP signature