简体   繁体   English

Codeigniter Tank Auth无法登录?

[英]Codeigniter Tank Auth Not Logging In?

I have been developing a codeigniter website for a few months now, using the Tank Auth library for users. 几个月以来,我一直在使用Tank Auth库为用户开发一个Codeigniter网站。 It's still in development, but for the last 4 months everything has been working perfect. 它仍在开发中,但是在过去的4个月中,一切工作都非常完美。

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. 我有错误报告,并且codeigniter仍设置为开发模式。

I would really appreciate it if someone could provide some insight to my problems. 如果有人可以对我的问题提供一些见解,我将不胜感激。

Ps I've searched the rest of SO, found some similar problems, but no solutions. 附言:我搜索了SO的其余部分,发现了一些类似的问题,但没有解决方案。

Any help is appreciated. 任何帮助表示赞赏。

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. 好了,对于其他任何有此问题的人(可能很苗条),tank auth的数据库表之一称为user_profiles,在我创建网站的任何时候,我都想以某种方式对其进行了更改。 The user_id field, while a foreign key, has to be unique. user_id字段是外键,但必须唯一。 Turns out the account I was logging in with had 2 different rows with the same user_id, but different primary keys. 原来我登录时使用的帐户有2个不同的行,且具有相同的user_id,但主键不同。

I had the same problem. 我有同样的问题。 i checked login_attempts table where Tankauth stored my ip and no of login attempts. 我检查了Tankauth存储我的IP的login_attempts表,没有登录尝试。 i truncate the data and everything started to work 我截断数据,一切开始工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM