From 640ccb9229224642515527daf87f308a7aa9bdf4 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Wed, 10 Jun 2026 11:47:26 +0800
Subject: [PATCH] 1
---
trading-order-security-common/src/main/java/com/yami/trading/security/common/manager/PasswordCheckManager.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/trading-order-security-common/src/main/java/com/yami/trading/security/common/manager/PasswordCheckManager.java b/trading-order-security-common/src/main/java/com/yami/trading/security/common/manager/PasswordCheckManager.java
index 324095a..caf66cf 100644
--- a/trading-order-security-common/src/main/java/com/yami/trading/security/common/manager/PasswordCheckManager.java
+++ b/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");
}
}
}
--
Gitblit v1.9.3