Ivan,

I used a beforeSave function in my model to MD5 the password field
before saving the data, and it works well for me.

ivan wrote:
> Hi
>
> I need to save a field encoded md5. Let's say I have user and password,
> so i want to save the user as comes from the view, but, the password
> want to md5 first. how to do it?
>
> I also need to change when logout is called the stat of logged from 1
> to 0, without any view in the way. logged is a field in the user table.
> 
> thanks in advance
> 
> Ivan


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to