I have Cakephp app installed on a linux box.
The Mysql Driver is installed and php-pecl-acl has been removed.
There are no problems with the Cookies. The users and passwords exist in the database. The password is a CHAR(40) in the database.
The Auth->login() method always returns false, even though the sql query debug log shows that rows affected = 1
array(
'log' => array(
(int) 0 => array(
'query' => 'SELECT `User`.`id`, `User`.`username`, `User`.`password`, `User`.`email`, FROM `somedatabase`.`users` AS `User` WHERE `User`.`username` = 'someuser' AND `User`.`password` = '2d7a34c9ef8efa2cfdf4b89175f7edec1cd0ddda' LIMIT 1',
'params' => array(),
'affected' => (int) 1,
'numRows' => (int) 1,
'took' => (float) 2
)
),
'count' => (int) 1,
'time' => (float) 2
Please help.
Thank you.
Sounds like the exact same issue I was having that ended up being a server-specific issue related to PDO / PECL:
$this->Auth->login() creates correct query that returns 1 row, but fails IF check (server specific issue)
Edit:
Comment from OP about how he fixed: