Codeigniter URI 语言标识符 + Tank Auth 激活不适用于默认语言

Codeigniter URI Language Identifier + Tank Auth activation not working just on default language

我有一个带有最新 URI 语言标识符和 Tank auth 的 codeigniter 2.2.6,问题是在我的情况下切换到非默认语言时: “http://www.mywebsite.hu/en" and proceed registration the email successfully sent but when i click activation link like "http://www.mywebsite.hu/auth/activate/1/8ef760c2345d21654ae92f5a70017f5e”我收到 "The activation code you entered is incorrect or expired." 错误消息。

然后,如果我在浏览器中清除 mywebsite.hu 对应的 cookie,则激活成功完成。不知道为什么...

在 codeigniter 中 config.php

$config['language'] = "hungarian";

/* default language abbreviation */
$config['language_abbr'] = "hu";

/* set available language abbreviations */
$config['lang_uri_abbr'] = array("en" => "english");

/* hide the language segment (use cookie) */
$config['lang_ignore'] = TRUE;

好的,现在我修改了控制器auth.php激活功能

来自这个:

$user_id        = $this->uri->segment(3);
$new_email_key  = $this->uri->segment(4);

对此:

$user_id        = $this->uri->segment(1);
$new_email_key  = $this->uri->segment(2);

现在工作正常!