mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-23 04:22:43 +08:00
文案修改
This commit is contained in:
parent
da3a6eff37
commit
ce1cf5b475
@ -63,7 +63,7 @@ public class LoginController {
|
||||
String limitKey = "admin-login-limit:" + loginRequest.getEmail();
|
||||
Long reqCount = rateLimiterService.current(limitKey, 3600L);
|
||||
if (reqCount > 5) {
|
||||
return JsonResponse.error("连续五次错误,请稍后再试");
|
||||
return JsonResponse.error("多次账密错误,账号被锁1个小时");
|
||||
}
|
||||
|
||||
String password =
|
||||
|
@ -65,7 +65,7 @@ public class LoginController {
|
||||
String limitKey = "login-limit:" + req.getEmail();
|
||||
Long reqCount = rateLimiterService.current(limitKey, 600L);
|
||||
if (reqCount >= 10) {
|
||||
return JsonResponse.error("登录失败次数过多,请稍候再试");
|
||||
return JsonResponse.error("多次账密错误,账号被锁30分钟");
|
||||
}
|
||||
|
||||
if (!HelperUtil.MD5(req.getPassword() + user.getSalt()).equals(user.getPassword())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user