Your passwords will work if you don't use the auth component, if you're not
using the auth component, $session->read('Auth.User.superuser'); will not
work. You need to save it manually.
In your example you say "if ($user = 'superuser') {"
You need to do what Ryan says (if you use Auth).
On 24 February 2011 19:00, cricket <[email protected]> wrote:
> On Wed, Feb 23, 2011 at 10:22 PM, Kid Hell <[email protected]>
> wrote:
> > thank you for your reply..but i still can't get it right.. I'm a slow
> > learner. Can you please explain deeper on the (Auth.User.group_id') part.
> >
> > this is what the table in db looks like
> >
> > id usrname
> > pass superuser
> >
> > 1 jill
> > 12345 1
> > 2 john
> > 54321 0
> > 3 kurt 32145
> > 0
>
>
> I presume these are example data but, to just to be clear, the
> passwords must be hashed before saving to the DB.
>
> --
> 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
>
--
Kind Regards
Stephen
http://www.ninjacodermonkey.co.uk
--
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