Re: LiveUser questions
| From: | Lukas Smith | Date: | Wed, 08 Jun 2005 10:34:36 +0000 |
| Subject: | Re: LiveUser questions | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19514@lists.php.net to get a copy of this message | ||
Rodrigo Alvarez wrote:
$options = array( 'autoInit' => true,
I pass those options to LiveUser::factory($options), but I don't know if this is the way to do it. At this point, $_perm and $_auth are empty properties, that I don't know how to initialize them.since you have the autoInit option enabled it will try to initialize the auth and perm containers on object creation. Since this did not seem to succeed, you need to check why things failed: $LU = LiveUser::factory(); $LU->getErrors(); $LU->getStatus(); echo $LU->getStatusMessage($LU->getStatus()); if you disable autoInit and instead call the init() method manually, you will find that if anything failed in the authentication you will get a false as the return value. regards, Lukas