I'm having issues with the auth component in CakePHP 1.2. The hashes
generated seem to be different from what's generated from registration
and login. This creates a mismatch with the hash password stored on
the DB.

$this->Auth->hashPasswords($this->); hashes the same as the Login
function. But the sign up hashes differently. Can anyone help with
this? I have no idea what's causing this as CakePHP is doing all the
hashing in the background.




// Registration function
function sign_up() {
     if(!empty($this->data))
     {
          $this->User->create();
          if($this->User->save($this->data)){
               debug('it worked');
          }
     }


// Login function
function login() {
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to