Reputation: 658
I have been developing a codeigniter website for a few months now, using the Tank Auth library for users. It's still in development, but for the last 4 months everything has been working perfect.
A few days ago all of a sudden the login feature just stopped working, when you enter your credentials it just refreshes the page, regardless if you're right or wrong, and displays no error messages.
Does anyone know what is wrong? Or has anyone dealt with this before? Is there any feature I can turn on that would display any errors if they're were any. I have error reporting on and codeigniter is still set to development mode.
I would really appreciate it if someone could provide some insight to my problems.
P.s. I've searched the rest of SO, found some similar problems, but no solutions.
Any help is appreciated.
Upvotes: 2
Views: 943
Reputation: 354
I had the same problem. i checked login_attempts table where Tankauth stored my ip and no of login attempts. i truncate the data and everything started to work
Upvotes: 1
Reputation: 658
Ok so for anyone else having this problem, which is probably slim, one of tank auth's database tables is called user_profiles, any while making my site I guess I somehow altered this. The user_id field, while a foreign key, has to be unique. Turns out the account I was logging in with had 2 different rows with the same user_id, but different primary keys.
Upvotes: 1