Hmm. Well, I looked to override the startController() method and write
a user record to the Session based on the Auth->sessionKey, but that
didn't work. Following the chain of events, it looks like this
happens:

dispatcher created
  does a bunch of magic
  creates the components
  creates the classes
  starts the controller
    inits components -> Auth is now activated and looking for a user
  calls _invoke()
    _invoke() calls startController()
      custom code would go here

So adding something into startController to spoof a login doesn't
work, since it won't get called until after Auth has done its
business.

Anyone else worked with testAction() and the Auth component?


--~--~---------~--~----~------------~-------~--~----~
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