Hi!

I am trying to make a page where users can change their password.
The user has to insert the actual password and the new password in
form inputs, then submit the form.
Then, I want to compare the submitted password and the real password
(the one in the database).

I try to get the real password through the Auth component :

$real_password = $this->Auth->user('password');

But it is empty!

So, how can I get the password of a member ?

I also tried to directly make a query through the model, but again it
is still empty.

Maybe I can try to use the Auth->login() method with the password
submitted and see what it returns, but it seems dirty.
Or in the worst case I could make a direct query to get the password,
through the controller method query(), but again this is dirty.

Any idea ?

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