in the password value. During submission, if both the fields are
empty, ignore changing password else if both the fields are same, then
hash THAT string and use it as password. Simple.
On Dec 31, 3:45 pm, vikas <vikas...@gmail.com> wrote:
> hi..
> I used password field to store a password. I used the Auth component
> as it will automatically hash the password field.
>
> Now problem is when user edit his information, in password field the
> it shown as hash string(for example like "*****************").
>
> so this means the original password is hashed that is ok.but if user
> doesnot change the password during editing his information the
> password string is again hashed by Auth component and it is
> changed......
>
> so i want to retrive original password as a password text when user
> edit his information insted of that long hashed string. so when user
> not changed his password then string remains same and not
> overhashed...
>
> plz give some solution...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment