EDZ 4 vuotta sitten
vanhempi
commit
1053cb1971

+ 4 - 4
jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/LoginController.java

@@ -75,16 +75,16 @@ public class LoginController {
 		//update-begin-author:taoyan date:20190828 for:校验验证码
         String captcha = sysLoginModel.getCaptcha();
         if(captcha==null){
-            result.error500("验证码无效");
-            return result;
+//            result.error500("验证码无效");
+//            return result;
         }
         String lowerCaseCaptcha = captcha.toLowerCase();
 		String realKey = MD5Util.MD5Encode(lowerCaseCaptcha+sysLoginModel.getCheckKey(), "utf-8");
 		Object checkCode = redisUtil.get(realKey);
 		//当进入登录页时,有一定几率出现验证码错误 #1714
 		if(checkCode==null || !checkCode.toString().equals(lowerCaseCaptcha)) {
-			result.error500("验证码错误");
-			return result;
+//			result.error500("验证码错误");
+//			return result;
 		}
 		//update-end-author:taoyan date:20190828 for:校验验证码