I wrote a tutorial on how to use the Auth component. Its over 2 years
old but should still apply.

http://milesj.me/blog/read/5/Using-CakePHP%27s-Auth-Component

On Feb 27, 3:59 am, AD7six <[email protected]> wrote:
> On 26 feb, 20:53, amarradi <[email protected]> wrote:
>
> > i added an password from login into the mysql db and now i'm ready for
> > login
>
> > But where i set the hashing algorithm i dont know
>
> You don't need to think about that unless you need to change it.
>
> Assuming you haven't written a user registration function etc. yet I'd
> suggest:
>
> set debug to 2
> try logging in with whatever username and password you want
> look at the sql log
> insert/edit a user in the db matching the query that cake generated.
>
> thereafter you want to be looking at isAuthorized probably (check the
> book)
>  e.g.https://github.com/AD7six/skel/blob/master/app_controller.php#L223
>
> AD

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to