mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-17 10:56:39 +08:00
修复:用户名枚举漏洞
This commit is contained in:
parent
c4b95654fe
commit
57747d9082
@ -162,7 +162,7 @@ public class LoginService implements StpInterface {
|
||||
// 验证登录名
|
||||
EmployeeEntity employeeEntity = employeeService.getByLoginName(loginForm.getLoginName());
|
||||
if (null == employeeEntity) {
|
||||
return ResponseDTO.userErrorParam("登录名不存在!");
|
||||
return ResponseDTO.userErrorParam("登录名或密码错误!");
|
||||
}
|
||||
|
||||
// 验证账号状态
|
||||
@ -509,7 +509,7 @@ public class LoginService implements StpInterface {
|
||||
// 验证登录名
|
||||
EmployeeEntity employeeEntity = employeeService.getByLoginName(loginName);
|
||||
if (null == employeeEntity) {
|
||||
return ResponseDTO.userErrorParam("登录名不存在!");
|
||||
return ResponseDTO.ok();
|
||||
}
|
||||
|
||||
// 验证账号状态
|
||||
|
@ -164,7 +164,7 @@ public class LoginService implements StpInterface {
|
||||
// 验证登录名
|
||||
EmployeeEntity employeeEntity = employeeService.getByLoginName(loginForm.getLoginName());
|
||||
if (null == employeeEntity) {
|
||||
return ResponseDTO.userErrorParam("登录名不存在!");
|
||||
return ResponseDTO.userErrorParam("登录名或密码错误!");
|
||||
}
|
||||
|
||||
// 验证账号状态
|
||||
@ -511,7 +511,7 @@ public class LoginService implements StpInterface {
|
||||
// 验证登录名
|
||||
EmployeeEntity employeeEntity = employeeService.getByLoginName(loginName);
|
||||
if (null == employeeEntity) {
|
||||
return ResponseDTO.userErrorParam("登录名不存在!");
|
||||
return ResponseDTO.ok();
|
||||
}
|
||||
|
||||
// 验证账号状态
|
||||
|
Loading…
Reference in New Issue
Block a user