dever 6 роки тому
батько
коміт
5e003832dc
1 змінених файлів з 2 додано та 5 видалено
  1. 2 5
      src/Reg.php

+ 2 - 5
src/Reg.php

@@ -277,12 +277,9 @@ class Reg extends Base
                 Dever::alert('请输入正确的邮箱');
             }
 
-            $account = Dever::config('base', 'project')->account;
-            $code = Dever::config('base', 'project')->nocode ? Dever::config('base', 'project')->nocode : state;
-            $baccount = ucfirst($account);
-            $method = 'check' . $baccount . 'Exists';
+            $method = 'checkEmailExists';
 
-            $this->$method($code, true);
+            $this->$method(1, true);
 
             $code = $this->code(false, false);