fix bug 40621 登录--手机号登录--提示语为用户名
This commit is contained in:
+2
-2
@@ -106,7 +106,7 @@ public class CompanyLoginController {
|
||||
PayContactsManagement contactsManagement = payContactsManagementService.getOne(queryWrapper);
|
||||
//update-end-author:wangshuai date:20200601 for: 登录代码验证用户是否注销bug,if条件永远为false
|
||||
if (Objects.isNull(contactsManagement)) {
|
||||
throw new JeroBootException("用户名或密码错误");
|
||||
throw new JeroBootException("手机号或密码错误");
|
||||
}else {
|
||||
if (StringUtils.isBlank(contactsManagement.getPassword())){
|
||||
result.setMessage("请先用手机号登录");
|
||||
@@ -134,7 +134,7 @@ public class CompanyLoginController {
|
||||
} else {
|
||||
redisUtil.set(RETRY_LOGIN_PREFIX + phone, retryCount, redisUtil.getExpire(RETRY_LOGIN_PREFIX + phone));
|
||||
}
|
||||
String msg = retryCount == RETRY_LOGIN_MAX_COUNT ? "密码错误次数过多,请"+passwordResetTime+"分钟后重试" : "用户名或密码错误,剩余可登录次数:" + (RETRY_LOGIN_MAX_COUNT - retryCount);
|
||||
String msg = retryCount == RETRY_LOGIN_MAX_COUNT ? "密码错误次数过多,请"+passwordResetTime+"分钟后重试" : "手机号或密码错误,剩余可登录次数:" + (RETRY_LOGIN_MAX_COUNT - retryCount);
|
||||
result.error500(msg);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user