Nevermind everyone. I was being an idiot. My loginRedirect was to a
place that required authorization. As soon as I changed it some a
general controller and action that ALL loggged in users had access to,
I was fine.


On Jun 18, 8:46 am, Baz L <[EMAIL PROTECTED]> wrote:
> I believe I'm having a similar problem as 
> :http://groups.google.com/group/cake-php/browse_thread/thread/6d672c98...
>
> I'm using controller authorization, so there is a isAuthorized() in my
> app_controller.php which goes off of a simple $this->Auth-
>
> >user('role').
>
> I'm pretty much working off of the examples in the Cook 
> Book:http://book.cakephp.org/view/172/authentication
>
> I have the same login() function.
>
> This is what I've noticed.
> After isAuthorized returns false (user logs in, but is not authorized)
> I get redirected to:
> $controller->redirect($this->noaccessRedirect, null, true);  (from
> Auth::isAuthorized() )
> This sends me back to my login page (which is fine), however (and I'm
> assuming here) Auth::startup gets called again, thus
> Auth::isAuthorized() gets called again, and the whole thing starts
> over and over again.
>
> If I clear out the UsersController::login(), then every thing works
> fine.
>
> Can someone with more experiece help me out, or do I submit a ticket.
>
> Any help would be appreciated.
> --
> Baz L
> Web Development 2.0http://WebDevelopment2.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to