2015-11-05 31 views
0

我有一个codeigniter 2.2.6与最新的URI语言标识符和坦克认证安装问题是当我在这种情况下切换到非默认语言: “http://www.mywebsite.hu/en “并继续注册成功发送的电子邮件,但是当我点击”http://www.mywebsite.hu/auth/activate/1/8ef760c2345d21654ae92f5a70017f5e“这样的激活链接时,iam会得到”您输入的激活码不正确或过期。“错误信息。Codeigniter URI语言标识符+坦克Auth激活不工作只是在默认语言

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

在笨的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; 
+0

我认为你应该在电子邮件APPPATH中auth之前设置lang abbr。 'views/email/activate-html.php'' template about 17 line。你应该通过当前客户端使用的session/cookie来设置它。 – Tpojka

回答

0

好了现在我修改了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); 

,现在工作正常!