ソースを参照

添加验证码4位

my-csc-config-file.git 4 年 前
コミット
424445ec8a
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      src/main/java/com/unissoft/controller/PublicController.java

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

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