Re: Issue with storage configuration

Helgi Þormar <[email protected]>
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <1118490960.3870.31.camel@megatokyo>
On Sat, 2005-06-11 at 21:42 +1000, Dan Rossi wrote:
> I think I have stepped on a bug, or an out of date example.
> 
> In LiveUser_Admin_Auth_Commin in init
> 
>   if (!isset($conf['storage'])) {
>              $this->_stack->push(LIVEUSER_ADMIN_ERROR, 'exception',
>                  array('msg' => 'Missing storage configuration array'));
>              return false;
>          }
> 
> 
> the storage config is in the perm not auth config
> 
> What do i do ?

This here is taken from example 3 in the Admin class:

    'authContainers'    => array(
        'DB' => array(
            'type'          => 'DB',
            'loginTimeout' => 0,
            'expireTime'   => 0,
            'idleTime'     => 0,
            'allowDuplicateHandles'  => true,
            'passwordEncryptionMode' => 'PLAIN',
            'storage' => array(
                'dsn' => $dsn,
                'alias' => array(
                    'lastlogin' => 'lastlogin',
                    'is_active' => 'is_active',
                ),
                'fields' => array(
                    'lastlogin' => 'timestamp',
                    'is_active' => 'boolean',
                ),
                'tables' => array(
                    'users' => array(
                        'fields' => array(
                            'lastlogin' => false,
                            'is_active' => false,
                        ),
                    ),
                ),
            )
        )
    ),
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.