Hi Balanza;
beforeSave callback (in your model) would be the place to do that.
Although for the example you give, if you use the Auth component a
password will be hashed by default.



On Jun 8, 4:25 am, Balanza <[email protected]> wrote:
> Hi,
> i wonder i couldn't find anything about make some elaboration to data
> coming from a form after it's been validated by my model. For
> instance, ti could be very useful for saving an encrypted password. I
> actually haven't found anything besides doing it in the controller -
> and of course it messes with built-in cake validation.
>
> Does anybody know any way to avoid this or a doc i can read?
>
> thanks,
>
> balanza
--~--~---------~--~----~------------~-------~--~----~
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