Explorar el Código

update 修改验证码默认样式

疯狂的狮子Li hace 6 meses
padre
commit
efc2a89d8c

+ 1 - 1
ruoyi-auth/src/main/java/org/dromara/auth/config/CaptchaConfig.java

@@ -20,7 +20,7 @@ public class CaptchaConfig {
 
     private static final int WIDTH = 160;
     private static final int HEIGHT = 60;
-    private static final Color BACKGROUND = Color.LIGHT_GRAY;
+    private static final Color BACKGROUND = Color.WHITE;
     private static final Font FONT = new Font("Arial", Font.BOLD, 48);
 
     /**

+ 1 - 1
script/config/nacos/ruoyi-auth.yml

@@ -7,7 +7,7 @@ security:
     # 验证码类型 math 数组计算 char 字符验证
     type: MATH
     # line 线段干扰 circle 圆圈干扰 shear 扭曲干扰
-    category: CIRCLE
+    category: SHEAR
     # 数字验证码位数
     numberLength: 1
     # 字符验证码长度