Destoon如何去除登录的邮箱验证?

destoon 3个月前 wkj006
35 0

Destoon如何去除登录的邮箱验证?

主要修改下面的函数即可,/module/member/member.class.php

    function is_member($member) {
      global $L, $AREA;
      if(!is_array($member)) return false;
      if(!$this->is_passport($member['passport'])) return false;
      if(!$member['groupid']) return $this->_($L['member_groupid_null']);
      if(strlen($member['truename']) < 2 || !$this->is_clean($member['truename'])) return $this->_($L['member_truename_null']);
      //停止邮箱验证
      //if(!$this->is_email(trim($member['email']))) return false;
      //停止邮箱重复检验
//        var_dump($this->email_exists(trim($member['email']))) ;
//        exit;

        //if($this->email_exists(trim($member['email']))) return $this->_($L['member_email_reg']);
        //重要重要!还有去除数据库邮件的唯一索引
      $groupid = $this->userid ? $member['groupid'] : $member['regid'];
      if($groupid > 5) {
         if(strlen($member['company']) < 2) return $this->_($L['member_company_null']);
         if(preg_match("/[0-9]+/", $member['company']) || !$this->is_clean($member['company'])) return $this->_($L['member_company_bad']);
         //if($this->company_exists($member['company'])) return $this->_($L['member_company_reg']);
      }
版权声明:wkj006 发表于 2020-11-27 11:27:05。
转载请注明:Destoon如何去除登录的邮箱验证? | 滴水石穿

暂无评论

暂无评论...