Tuesday, February 24, 2009

RE: AuthComponent problem

What I want to accomplish is I have two screens. First is member login screen (users_controller.php) which takes userid and password. I want the password to be hashed. The second screen is change password screen(usersinfo_controller.php) . In that screen too the password needs to be hashed. In both the classes i defined
var $components = array('Auth'); The function to look for in usersinfo_controller.php is changepassword() and in users_controller.php its login().
 
Now what happens is: If I comment out the components variable in change password screen, then the password is hashed in member login screen otherwise the password is not hashed.
 
Hope I have been clear. The code is attached with this email.
 
Thanks,
Bharani
 
> Date: Tue, 24 Feb 2009 01:09:07 -0800
> Subject: Re: AuthComponent problem
> From: lecterror@gmail.com
> To: cake-php@googlegroups.com
>
>
> If you're having problem with a piece of your code, use the CakeBin
> (http://bin.cakephp.org/) to show us your code, give us a detailed
> description of your problem, i.e. what do you want to accomplish, what
> is the expected output and what is the output you're getting.
>
> Then someone might try to answer your question.
>
> On Feb 24, 8:05 am, lakersfan74 <lakersfa...@msn.com> wrote:
> > Hello,
> >      I have a problem with AutoComponent. I want to use AutoComponent in two
> > different controllers. If I use it in only one controller its fine. If I use
> > it in the second controller, the AutoComponent in the first controller is
> > not valid and password field is not encrypted.
> >
> > Any help will be greatly appreciated.
> >
> > Thanks,
> > Bharani
> > --
> > View this message in context:http://www.nabble.com/AuthComponent-problem-tp22176142p22176142.html
> > Sent from the CakePHP mailing list archive at Nabble.com.
> --~--~---------~--~----~------------~-------~--~----~
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: