Re: Auth Component - Password empty - Try to make a "change password" page
Reset Passwords in CakePHP http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp On Jul 20, 1:24 pm, brian wrote: > I've never had problems with this but there's lots of info online: > > http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_ENUS271&=&q=... > > On Mon, Jul 20, 2009 at 7:10 AM, Pascal Messana wrote: > > > 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 -~--~~~~--~~--~--~---
Re: Auth Component - Password empty - Try to make a "change password" page
I've never had problems with this but there's lots of info online: http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_ENUS271&=&q=cakephp+change+password&aq=f&oq=&aqi=g2 On Mon, Jul 20, 2009 at 7:10 AM, Pascal Messana wrote: > > 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 -~--~~~~--~~--~--~---
Auth Component - Password empty - Try to make a "change password" page
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 -~--~~~~--~~--~--~---