Reputation: 1434
Apparently this is a common problem (with an answer) but I haven't seen the answer being shared.
https://groups.google.com/forum/#!topic/web2py/EUXZ2aoKA50
https://groups.google.com/d/msg/web2py/WEXWcAP52IY/YE1BU4esRc0J
I just installed Web2Py on my hosted site and I can't log in to the admin panel with the correct password. If I put in a wrong passwords it says the password is wrong. If I put in the right password, it says nothing and reloads the login page.
Edit: Cookies, while mentioned as one possible solution (try it and it might fix yours) are not the problem on my system. The person on the google forum found some other solution after saying cookies didn't fix his either.
Upvotes: 1
Views: 534
Reputation: 1597
The answer was shared but you didn't catch it.
Solution: If cookies are disabled in the browser login will fail.
UPDATE: Check for HTTPS !
The administrative interface, admin, is only accessible from localhost unless you run web2py behind Apache with mod_proxy. If admin detects a proxy, the session cookie is set to secure and admin login does not work unless the communication between the client and the proxy goes over HTTPS; this is a security measure. All communications between the client and admin must always be local or encrypted. More details in web2py book.
Upvotes: 1