Also, it is important to note under which mode you are using Auth.
For example, I am using 'actions' mode alongside the AclComponent.  In
this case, I use the following:

function beforeFilter()
{
    $this->Auth->allowedActions = array('reset_password');
    parent::beforeFilter();
}

On Feb 11, 11:27 am, Baz <[EMAIL PROTECTED]> wrote:
> Here's a shameless plug for my site:
>
> http://www.webdevelopment2.com/cakephp-auth-component-tutorial-2/
>
> There's some sample code you can download there and compare certain things.
>
> On Feb 11, 2008 1:21 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Feb 11, 2008 2:05 PM, Neil <[EMAIL PROTECTED]> wrote:
>
> > > Thanks, but that is not the problem then because in my current setup &
> > > for testing I put"
> > > var $components = array('Auth');
> > > in every controller instead of app_controller and it still did not
> > > work.
>
> > Dude, I have no idea why it's not working for you.  All the advice
> > you've been given is enough to get you going.  Here's a handy
> > checklist that I use when doing Auth
>
> > 1) Have I included the component everywhere I want
> > 2) Have I created the database for the model I'm using for Auth
> > 3) Have I created the Model for the database I'm using for Auth
> > 4) Have I created my login action and view
> > 5) Have I set the correct parameters in my beforeFilter() depending on
> > my particular scenario
> > 6) I have read over some of these fine sources of documentation on
> > using Auth (I happened to have written them):
>
> >http://tempdocs.cakephp.org/#TOC142222
> >http://www.littlehart.net/atthekeyboard/?s=Auth
>
> > If you've gone through all that and *still* can't get it to work,
> > well, you've fucked something up and need to really debug stuff.  Yes,
> > I've made mistakes too despite all the fine info listed above but I
> > always figure it out in the end.
>
> > --
> > Chris Hartjes
> > Internet Loudmouth
> > Motto for 2008: "Moving from herding elephants to handling snakes..."
> > @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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