2008/7/21 Stewart <[EMAIL PROTECTED]>:

>
> hello,
>
> I am calling AuthComponent::password to hash a password. When i try
> and call this method I get
>
> Fatal error: Class 'AuthComponent' not found in /home/stewart/
> workspace/portable_contacts/models/user.php on line 40
>
> Tried to include the Auth with
>
> var $component = array('Auth');
>
> still did not work.
>
> Any ideas?


- Use of component in model is not a good idea, use code inside password
method, i.e., Security::hash($password, null, true); to encrypt your
password in model

-- 
Amit

http://amitrb.wordpress.com/
http://coppermine-gallery.net/
http://cheesecake-photoblog.org/
http://www.sanisoft.com/blog/author/amitbadkas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to