P.S. I'm using release 1.2.0.7962.
On Sun, Jan 4, 2009 at 1:14 AM, Matt Williamson <[email protected]>wrote:
> Hey Guys,
>
> I am trying to use the Auth component, but I'm pretty sure there's
> some bug preventing me from doing so. Here is what my
> app_controller.php looks like:
>
> <?php
> class AppController extends Controller {
> var $components = array('Auth');
>
> function beforeFilter(){
> $this->Auth->allow('*');
> $this->Auth->logoutRedirect = '/';
> $this->Auth->loginRedirect = '/';
> $this->Auth->authorize = 'controller';
> }
>
> function isAuthorized(){
> die('isAuthorized Called!');
> }
> }
> ?>
>
> Whenever I browse to a view, I get redirected to the login page. I'd
> expect the behavior to allow access to the view or at least the string
> 'isAuthorized Called!' to be printed, but it seems the isAuthorized
> method is never called. The following works, though:
>
> $this->Auth->allowedActions = array('*');
>
> I am using PHP4 on XAMPP/Windows.
>
> Can someone try to reproduce and/or tell me what I'm doing wrong?
>
>
>
> Thanks,
>
> Matt
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---