| CakePHP Official Site · Rules and Regulations |
Help
Search
Members
Calendar
Shoutbox
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| tom.fox |
Posted: Jun 19 2010, 09:39 PM
|
||||||
|
Newbie ![]() Group: Members Posts: 3 Member No.: 2124 Joined: 19-June 10 |
hi, i have a problem. i am saving the users password at registration as md5. when the user is trying a login, i check if the entered username and password is equal to the entry in the database. for that, i have to convert the entered password into md5, to make it comparable: thats the code to find the user in my controller class
now if print the query to check what it looks like, one thing is odd. no matter what password i enter it is ALWAYS(!) the same md5 key:
no wonder i get no results and the variable "$user" is empty...i get "d41d8cd98f00b204e9800998ecf8427e" everytime.. thats a mystery....does somebody know the answer? i'd be soooo happy many many thanks btw: thats my view
|
||||||
| _dExter |
Posted: Jan 28 2011, 11:45 PM
|
|
Newbie ![]() Group: Members Posts: 2 Member No.: 2639 Joined: 28-January 11 |
I think I have the same problem... Anyone knows any solution?
|
| endyourif |
Posted: Jan 30 2011, 01:18 AM
|
|
Member ![]() ![]() Group: Members Posts: 14 Member No.: 2552 Joined: 2-January 11 |
The md5 value being display is for an empty string.
I would begin by debugging your $this->data because it sounds like it is not being set properly. Another question, why not just use the Auth component to do this? You can follow my simple tutorial here to set it up in less than 10 minutes: CakePHP Login System -------------------- Endyourif.com - Helping you solve those tough coding problems
|
![]() |
![]() ![]() ![]() |