mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-07 03:03:47 +08:00
修复:用户名枚举漏洞
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
// 验证账号状态
|
||||
|
||||
Reference in New Issue
Block a user