Codeigniter Ionauth 在忘记密码时生成错误的电子邮件
Codeigniter Ionauth generating wrong email in forgot password
当我点击忘记密码时,电子邮件中的 link 是:
http://10.50.2.124/ticket/auth/res=t_password/CHkp7v2VAxXe09IJx060refc9881e6bb20ab2013
代替
http://10.50.2.124/ticket/auth/reset_password/CHkp7v2VAxXe09IJx060refc9881e6bb20ab2013
ion_auth.php中的设置是:
$config['use_ci_email'] = TRUE;
$config['email_config'] = array(
'mailtype' => 'html',
);
您应该尝试设置 crlf
来解决问题:
$this->email->set_crlf("\r\n");
或
$config['crlf'] = "\r\n";
当我点击忘记密码时,电子邮件中的 link 是:
http://10.50.2.124/ticket/auth/res=t_password/CHkp7v2VAxXe09IJx060refc9881e6bb20ab2013
代替
http://10.50.2.124/ticket/auth/reset_password/CHkp7v2VAxXe09IJx060refc9881e6bb20ab2013
ion_auth.php中的设置是:
$config['use_ci_email'] = TRUE;
$config['email_config'] = array(
'mailtype' => 'html',
);
您应该尝试设置 crlf
来解决问题:
$this->email->set_crlf("\r\n");
或
$config['crlf'] = "\r\n";