But the problem still goes on. The saved password in database is
hashed. But they always shows 'login error' while trying to log in.

On May 9, 8:51 pm, brian <bally.z...@gmail.com> wrote:
> Auth hashes the password automatically.
>
>
>
> On Fri, May 8, 2009 at 11:39 PM, carlito <towhid...@gmail.com> wrote:
>
> >  I m using auth component in my project.In my beforesave() function in
> > user.php i used this to hash password.
>
> > if(isset($this->data[$this->alias]['password']))
> > $this->data[$this->alias]['password'] = Security::hash($this->data
> > [$this->alias]['password'], null, true);
>
> > But it login error still remains. I think i need to hash the password
> > i give as input. If that's right then how to do it??
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to