Re: setAdminContainers changed to what ?
Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]> Tue, 24 Jan 2006 11:40:49 +1100
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
On 24/01/2006, at 11:14 AM, Dan Rossi wrote: > > 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. >> >> regards, >> Lukas >> > > Is this config ok ? I noticed the connnection config setting is gone now. $this->conf = array( //'autoInit' => false, //'debug'=>$logger, 'debug'=>true, 'session' => array( 'name' => 'PHPSESSION', 'varname' => 'ludata', 'force_start' => true ), 'cache_perm' => true, 'cookie' => array( 'name' => 'loginInfo', 'path' => null, 'domain' => null, 'secure' => false, 'lifetime' => 30, 'secret' => 'mysecretkey', 'savedir' => '.', ), 'login' => array( 'force' => true, ), 'logout' => array( 'destroy' => true, ), 'authContainers' => array( 'DB' => array( 'type' => 'MDB2', 'loginTimeout' => 0, 'expireTime' => 3600, 'idleTime' => 1800, 'allowDuplicateHandles' => true, 'passwordEncryptionMode' => 'MD5', 'storage' => array( //'connection' => $this->_ludb, 'dsn' => $this->settings['LiveUser']['dsn'], 'prefix' => 'liveuser_', 'tables' => array( 'users' => array( 'fields' => array( // 'name' => false, // 'email' => false, 'is_active' => false, ), ), ), 'fields' => array( // 'name' => 'text', // 'email' => 'text', 'is_active' => 'boolean', ), 'alias' => array( //'name' => 'name', // 'email' => 'email' 'is_active' => 'is_active', ), // 'force_seq' => false ), ) ), 'permContainer' => array( 'type' => 'Complex', 'alias' => array(), 'storage' => array( 'MDB2' => array( // 'connection' => $this->_ludb, 'dsn' => $this->settings['LiveUser']['dsn'], 'prefix' => 'liveuser_', 'tables' => array(), 'fields' => array(), 'alias' => array(), // 'force_seq' => false ), ), ), );