As the title says, I have 2 different cakePHP apps, but the users of both are the same. I would like for there to be one login/pass for both applications, but i’m not sure how to go about doing that. When they log into one, if they log into the other in the same browser different tab, it logs out the other. Would I use Cookies? Is it possible to just tell the cake 2.x app to decrypt or whatever the password the same way the 1.3 app does?
Share
Make sure you added the hash function to your user’s model. They removed auto hashing in 2.x to make it more flexible.
Something like this in your 2.x user.php model file…
Help yourself debug your issue by adding
pr($this->data);in your appControllerbeforeFilter()then attempt login and compare the username and passwords that are being requested in each app.