Nevermind, I just found a rather nice tutorial on the subject. http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/
Mark On Sep 13, 3:50 pm, Mark <[EMAIL PROTECTED]> wrote: > Oh well..maybe I'll just do it the way everyone else is and define the > default allowed actions in the controller. It's just that I have 20 > controllers already, and it seems kind of silly to put that same code > snippet in every single one of them. Is there a way I can put > > $this->Auth->allowedActions = array('index', 'view'); > > in the AppController's beforeFilter and it apply to all the classes? > AFAIK that only says index and view are available in the > AppController, not derived controllers. > > Mark > > On Sep 13, 3:43 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > > > Hi Mark, > > > > Are you sure it takes an array? This doesn't want to work at all. > > > Before it was grabbing the username 'guest' from the database like it > > > was supposed to... just the permissions were wrong. > > > hmm, in my app I using the same code to update Auth's session when the > > active user updates their profile: > > > // Grab User id > > $this->User->id = $this->Auth->user('id'); > > // Grab up to date data > > $user = $this->User->read(); > > // Pass updated data to Auth > > $this->Auth->login($user); > > > AFAIK cake expects everything as arrays. > > > Jon > > > -- > > > jon bennett > > w:http://www.jben.net/ > > iChat (AIM): jbendotnet Skype: jon-bennett > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---