I'm afraid 0.16.2 is broken (or I am :- ) )
Tim Daeleman <[email protected]>
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
Hi,
OK, I give up!!
I started up from scratch again to see what I was doing wrong since
updating from 0.15.1 to 0.16.2. I build the most basic login system with
my (custom field) needs, but the result was still the same behaviour.
But apparantly the strange behaviour I encountered is also present in
the examples, even example 1!!!
I extended example 1 with 1 custom field (name) in the xml file and as
follows in the config:
'storage' => array(
'file' => 'Auth_XML.xml',
'alias' => array(
'auth_user_id' => 'userId',
'passwd' => 'password',
'lastlogin' => 'lastLogin',
'is_active' => 'isActive',
'name' => 'name'
),
'tables' => array(
'users' => array(
'fields' => array(
'lastlogin' => false,
'is_active' => false,
'owner_user_id' => false,
'owner_group_id' => false,
'name' => false,
),
),
),
'fields' => array(
'lastlogin' => 'timestamp',
'is_active' => 'boolean',
'owner_user_id' => 'integer',
'owner_group_id'=> 'integer',
'name' => 'text',
)
)
I also added a $LU->getProperty('name') in the output to check if this
property is retrieved correctly.
The strange behaviour occurs as follows with example 1:
0. Request example.php, result is OK, I get login box.
1. I login as e.g. father/father, result is OK: both handle and name
proporty are shown.
2. I request example.php again (without form input). Result is BAD: ONLY
handle property is shown, name porperty is not.
3. I press logout. result is BAD: Same behaviour as in 2., User is STILL
logged in, but ONLY handle property is shown, name property is not.
4. I press logout again. result is OK. User is logged out.
I get this exact same behaviour in my LU code for the website I'm
developing, and the small loginsystem I build to look for what I was
doing wrong.
I guess I will revert to 0.15.1 because this is starting to have an
effect on my health and relationship :)
Hopefully there's a solution. (Maybe some php setting, as nobody else
has reported this behaviour before)
P.S. I'll also do a bug report.
Tim