This is because beforeFilter runs on all requests, including on /users/
login .  So if you don't explicitly check for this (and any other
pages where you don't need to be logged in to access), then it will
see you are not logged in, and redirect you to /users/login.  This is
causing an infinite redirect loop.

So make sure you check what the current controller and action are, and
only redirect if it's somewhere the user must be logged in to access.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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