Destoon如何去除登入的郵箱驗證?

wkj001發表於2020-11-27

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']);
      }

相關文章