Re: setAdminContainers changed to what ?
Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]> Tue, 24 Jan 2006 11:08:23 +1100
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
On 23/01/2006, at 7:03 PM, Lukas Kahwe Smith wrote:
> Dan Rossi wrote:
>> Hi, ive just run an mass update of pear and it seems this method is
>> missing what is it now to start Liveuser_Admin , i tried the example
>> of init(); however i keep getting this error and not logging me in An
>> undefined error occurred or init() was not called .
>
> read the changelog .. it was changed to init()
> but what does admin have to do with login()?
>
> on the client side init() still needs to be called and login() and
> logout() if you so require needs to be called manually.
>
>
I didnt get a word of that, as ive said i looked at the example of the
change.
$this->admin =& LiveUser_Admin::factory($this->conf);
$this->admin->log->addChild($logger);
$this->admin->init();
login page
$this->liveuser =& LiveUser::factory($this->conf);
$username = (isset($_POST['username'])) ? $_POST['username'] : null;
$password = (isset($_POST['password'])) ? $_POST['password'] : null;
$remember = (isset($_POST['remember'])) ? $_POST['remember'] : null;
if (!$this->liveuser->init($username, $password, null, $remember)) {
var_dump($this->liveuser->getErrors());
exit;
}
i get this as the status message
An undefined error occurred or init() was not called