Przeglądaj źródła

添加验证码4位

my-csc-config-file.git 4 lat temu
rodzic
commit
424445ec8a

+ 1 - 1
src/main/java/com/unissoft/controller/PublicController.java

@@ -92,7 +92,7 @@ public class PublicController {
92 92
     @ApiOperation(value = "获取登录验证码")
93 93
     @GetMapping("/captcha")
94 94
     public ResultView captcha() {
95
-        SpecCaptcha specCaptcha = new SpecCaptcha(130, 48, 5);
95
+        SpecCaptcha specCaptcha = new SpecCaptcha(130, 48, 4);
96 96
         String verCode = specCaptcha.text().toLowerCase();
97 97
         String key = UUID.randomUUID().toString();
98 98
         // 存入redis并设置过期时间为3分钟