Codeigniter 坦克授权
我想知道是否有人可以帮助我,我最近移动了我的网站来测试它,所以我基本上复制了数据库并上传了文件。这意味着我已经在本地服务器上设置了一个用户帐户。然而,我发现登录有点不稳定,当我登录时它不接受它,所以我不得不重置我的密码,然后它就可以正常工作了。然后我决定注册另一个用户,效果很好,但第二天我去登录,它不允许我,即使我知道详细信息是正确的......
还有其他人经历过类似的事情吗?另外,如果有的话,你是如何解决的?
谢谢
I am wondering if someone can help me, I have recently moved my site live to test it so I basically copied the database and uploaded the files. This means that I had already set up a user account on my local server. However, I have found the login to be a bit temperamental, when I went to login it wouldn’t accept it so I had to reset my password which it then worked fine. Then I decided to register another user and that worked fine however I went to log in the next day and it wouldn’t let me, even though I know that the details were correct…
Has anyone else experienced something similar? Also, if you have, how did you fix it?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 Tank Auth 需要记住的一件事是,密码哈希值仅限于单个服务器,并且不适用于任何其他服务器。您可以通过将 phpass_hash_portable 更改为 true 来更改 Tank_auth 配置文件中的设置,但这不太安全。我的建议是重新创建帐户。
这是我在你的情况下能想到的唯一问题,希望能解决。
One thing to remember with Tank Auth is that the password hashes are localized to a single server, and will not work on any other. You can change that inside the tank_auth config file by changing
phpass_hash_portable
to true, but this is less safe. My recommendation is to just recreate the accounts.That is the only problem I can think of in your situation, hope if fixes it.