Explorar el Código

将验证码设置简易方便开发调试

Home hace 5 años
padre
commit
8a835ad90c
Se han modificado 3 ficheros con 5 adiciones y 4 borrados
  1. 0 0
      app/admin/view/index/index.html
  2. 0 0
      app/admin/view/index/welcome.html
  3. 5 4
      config/captcha.php

+ 0 - 0
public/static/admin/index.html → app/admin/view/index/index.html


+ 0 - 0
public/static/admin/page/welcome.html → app/admin/view/index/welcome.html


+ 5 - 4
config/captcha.php

@@ -5,9 +5,10 @@
 
 return [
     //验证码位数
-    'length'   => 5,
+    'length'   => 4,
     // 验证码字符集合
-    'codeSet'  => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY',
+//    'codeSet'  => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY',
+    'codeSet'  => '2345678',
     // 验证码过期时间
     'expire'   => 1800,
     // 是否使用中文验证码
@@ -19,9 +20,9 @@ return [
     //验证码字符大小
     'fontSize' => 25,
     // 是否使用混淆曲线
-    'useCurve' => true,
+    'useCurve' => false,
     //是否添加杂点
-    'useNoise' => true,
+    'useNoise' => false,
     // 验证码字体 不设置则随机
     'fontttf'  => '',
     //背景颜色