Codeigniter Ionauth在忘记密码时生成错误的电子邮件
问题描述:
When I click forget password, the link in the email is:
http://10.50.2.124/ticket/auth/res=t_password/CHkp7v2VAxXe09IJx060refc9881e6bb20ab2013
insted of
http://10.50.2.124/ticket/auth/reset_password/CHkp7v2VAxXe09IJx060refc9881e6bb20ab2013
The setting in ion_auth.php is:
$config['use_ci_email'] = TRUE;
$config['email_config'] = array(
'mailtype' => 'html',
);
答
You should try set crlf
to fix the issue:
$this->email->set_crlf("
");
or
$config['crlf'] = "
";