I've this little bit of code, and for some reason, it wasn't setting the
username/password properly;

  if(($midgard=mgd_auth_midgard("admin*linux.ie","secret",0))) 
        echo "Admin auth worked<BR>\n";
  if($person->create()) {
     mgd_update_password( $person->id, $per_username, $per_password);
     echo "mgd_update_password( $person->id, $per_username, $per_password)<BR>\n";
     echo "User account created for $person->username<P>\n";
  } else {
     echo "Failed to create an account for $person->username<P>\n";
  }

 It prints;

Admin auth worked
mgd_update_password( 0, valen, testpass)
User account created for valen

 Any idea why the person would be created - in the table, it's been given
an id etc. Could it just be that $person->create() doesn't fill in the ID
field ? Without the id, is there a handy way of reloading the person
structure ? (something like a $person->fetch() ?)

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to