Search code examples
phpframeworkslithium

login in Lithium doesnt work on host


I'm using default settings in Lithium, default adapter is php, everything is quite default. On my localhost I can login, add users, but when I copied everything to my host (fixed all db errors) I can't login. The code is fine.

Now I can make users and everything works except login. It seems that it can't find username/password in db that match inputs becouse it shows me an error msg - Login failed. How that's possible?

Like I said, everything is default and works on my localhost, if you need to see other code, just ask. controller: http://pastium.org/view/8a23279872e04753b84c93923ad2e61e


Solution

  • If everything is identical, chances are that you have environment-depending configurations in place (like db connections) or more likely Auth class setup!

    Remember that if you're not on localhost, lithium assumes (by default) that you are in production mode!