【问题标题】:Codeigniter Ionauth generating wrong email in forgot passwordCodeigniter Ionauth 在忘记密码时生成错误的电子邮件
【发布时间】:2015-06-13 12:08:48
【问题描述】:

当我点击忘记密码时,邮件中的链接是:

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',
                         );

【问题讨论】:

    标签: php codeigniter ion-auth


    【解决方案1】:

    您应该尝试设置crlf 来解决此问题:

    $this->email->set_crlf("\r\n");
    

    $config['crlf'] = "\r\n"; 
    

    【讨论】:

      猜你喜欢
      • 2014-08-11
      • 1970-01-01
      • 2016-08-31
      • 2011-02-19
      • 2018-08-17
      • 2013-06-28
      • 2018-07-21
      • 2013-06-13
      • 2015-06-22
      相关资源
      最近更新 更多