Re: Auth question
| From: | Christopher G.Morlier | Date: | Thu, 26 Sep 2002 22:59:26 +0000 |
| Subject: | Re: Auth question | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2393@lists.php.net to get a copy of this message | ||
Solved my own problem. Apparently, it is necessary to use a varchar field for the database table's password column...or maybe a char(32). I had previously used char(40) for the password.
-Chris
At 05:52 PM 9/26/2002 -0500, Christopher G.Morlier wrote:
Hi Everyone, I am trying to use the Auth module, but am not having much luck. When I attempt to login to the page, it fails and returns to the login screen. I have traced all the way down to the Auth_Container_DB::fetchData function, where I have added several print/print_r statements to compare my data. The DB.php file version is 1.11. The database query completes successfully, and when I print out $entry[$this->options['passwordcol']] it looks the same as the printout of md5($password). However, the comparison on the following line comes out false. if ($entry[$this->options['passwordcol']] == md5($password)) Any ideas? Thanks, Chris -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php