That way the logic of how the password is hashed stays on the model side, as
it should (the User model should take care of how data is saved, anyway)

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de Langdon Stevenson
Enviado el: MiƩrcoles, 28 de Febrero de 2007 06:52 p.m.
Para: [email protected]
Asunto: Re: newbie: register user

Instead of setting

   $this->data['User']['password'] = hash('sha256',$salt.$user.$pass);


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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