坦克认证忘记密码不工作 [英] Tank Auth forgot password does't work

查看:152
本文介绍了坦克认证忘记密码不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用CodeIgniter + Tank Auth。只有代码 http:// localhost / XXXXXXXX / auth / forgot_password 无法使用。
结果总是:
您的激活密钥不正确或已过期,请重新检查您的电子邮件并按照说明进行操作。

I use CodeIgniter + Tank Auth. Only the code http://localhost/XXXXXXXX/auth/forgot_password doesn't work. The result always is: "Your activation key is incorrect or expired. Please check your email again and follow the instructions."

注册

推荐答案

一些可能的问题:


  • Cookie设置不正确。检查您的Cookie设置,并进行测试,以确保您可以设置和读取Cookie。 (如果Cookie未用于重置,则可能无效)

  • 重置密码密钥已过期或设置不正确。检查数据库以查看hte值是否正确,然后查看链接,并检查您的 $ config ['forgot_password_expire'] 在Tank Auth。

  • 您可能在电子邮件中链接到错误的网址。
    这看起来不正确:

  • Cookies are not being set correctly. Check your cookie settings, and do a test to make sure you can set and read cookies. (this may be invalid if cookies are not used for the reset)
  • The reset password key is expired or wasn't set correctly. Check the database to see if hte value is correct before following the link, and check your $config['forgot_password_expire'] in Tank Auth.
  • You may be linking to the wrong URL in your email. This doesn't look right:

http:// localhost / XXXXXXXX / auth / forgot_password

应该是这样:

http:// localhost / auth / forgot_password / XXXXXXXX

不鼓励您使用Tank Auth,如果您仍处于早期阶段,建议您尝试 Ion_Auth 。我相信它也会在 PyroCMS 中使用,如果这样做会增加信用额。

Not to discourage you from using Tank Auth, but having used it I can recommend trying Ion_Auth if you are still in the early stages. I believe it's used in PyroCMS as well if that adds any credit.

这篇关于坦克认证忘记密码不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆