dever преди 7 години
родител
ревизия
4f111569d7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lib/Base.php

+ 1 - 1
lib/Base.php

@@ -160,7 +160,7 @@ class Base
     private function createCode()
     {
         $len = isset($this->config['code_length']) ? $this->config['code_length'] : 4;
-        $type = isset($this->config['code_type']) ? $this->config['code_type'] : 4;
+        $type = isset($this->config['code_type']) ? $this->config['code_type'] : 1;
         return Dever::rand($len, $type - 1);
     }
 }