|
@@ -169,10 +169,10 @@ public class SysController {
|
|
|
|
|
|
//用户不存在
|
|
|
if (userList == null || userList.isEmpty()) {
|
|
|
- throw ExceptionResultEnum.ERROR.exception("用户不存在");
|
|
|
+ throw ExceptionResultEnum.ERROR.exception("用户名或者密码错误");
|
|
|
}
|
|
|
if (userList.size() > 1) {
|
|
|
- throw ExceptionResultEnum.ERROR.exception("查出多个用户");
|
|
|
+ throw ExceptionResultEnum.ERROR.exception("用户名或者密码错误");
|
|
|
}
|
|
|
|
|
|
SysUser sysUser = userList.get(0);
|
|
@@ -181,7 +181,7 @@ public class SysController {
|
|
|
}
|
|
|
|
|
|
if (!password.equals(userList.get(0).getPassword())) {
|
|
|
- throw ExceptionResultEnum.ERROR.exception("密码错误");
|
|
|
+ throw ExceptionResultEnum.ERROR.exception("用户名或者密码错误");
|
|
|
}
|
|
|
|
|
|
//2022.11.10日加入用户/密码模式是否开启短信验证
|