I believe I'm having a similar problem as :
http://groups.google.com/group/cake-php/browse_thread/thread/6d672c98ae0557d5/c07ecd162209eab7

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.0
http://WebDevelopment2.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to