简体   繁体   English

Codeigniter Tank验证激活

[英]Codeigniter Tank Auth Activation

I'm having a problem with the the tank auth email activation functionality. 我的Tank Auth电子邮件激活功能有问题。 Using Codeigniter 2.1.0 and Tank Auth 1.0.9 使用Codeigniter 2.1.0和Tank Auth 1.0.9

If I click the activation link within the email that is sent when you register, it opens in a new window and appears to run the auth controller activate() function twice. 如果我单击注册时发送的电子邮件中的激活链接,它将在一个新窗口中打开,并且似乎两次运行身份验证控制器activate()函数。 The activation is run in the database because I can see it update.. but because the function is run twice it shows the session message "The activation code you have entered is incorrect or expired". 因为我可以看到它在更新中,所以在数据库中运行了激活。但是由于该函数运行了两次,因此显示了会话消息“您输入的激活码不正确或已过期”。 This isn't ideal from a user perspective and will cause confusion with the end user. 从用户角度来看,这不是理想的选择,并且会引起最终用户的困惑。

however, If I copy the activation url from the email and copy paste it into the window I initially registered in it works as it should and displays the correct session message. 但是,如果我从电子邮件中复制激活URL,然后将其粘贴到我最初在其中注册的窗口中,则它将按预期工作并显示正确的会话消息。

What would be causing the controller to act up when the link in the email is clicked and a new browser window tries to run the activation url?? 当单击电子邮件中的链接并且新的浏览器窗口尝试运行激活网址时,将导致控制器启动的原因是什么?

Possibilities: 可能性:

$routes[]

.htaccess rewrite

javascript redirect

php header()

session death

hidden F5 key under your chair

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

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