新版仿ok交易所-后端
1
zj
22 hours ago f31fc9f42f78de0808e7f4bdc797c5e622df09e3
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("You have entered the wrong password ten times; your login has been 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");
        }
    }
}