新版仿ok交易所-后端
1
zj
18 hours ago 640ccb9229224642515527daf87f308a7aa9bdf4
trading-order-security-common/src/main/java/com/yami/trading/security/common/manager/PasswordCheckManager.java
@@ -47,7 +47,7 @@
            count = RedisUtil.get(checkPrefix + userNameOrMobile);
        }
        if(count > TIMES_CHECK_INPUT_PASSWORD_NUM){
            throw new YamiShopBindException("密码输入错误十次,已限制登录30分钟");
            throw new YamiShopBindException("Too many failed login attempts, login restricted for 30 minutes");
        }
        // 半小时后失效
        RedisUtil.set(checkPrefix + userNameOrMobile,count,1800);
@@ -56,7 +56,7 @@
            count++;
            // 半小时后失效
            RedisUtil.set(checkPrefix + userNameOrMobile,count,1800);
            throw new YamiShopBindException("账号或密码不正确");
            throw new YamiShopBindException("Incorrect username or password");
        }
    }
}