diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java index 16a1506..3ca671e 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java @@ -130,7 +130,7 @@ public class SysLoginService if (!SecurityUtils.matchesPassword(password, sysUser.getPassword())) { log.info("登录用户:{} 密码不正确.", username); AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.password.not.match"))); - throw new ServiceException("登录失败!"); + return AjaxResult.success(MessageUtils.message("user.password.not.match")); } LoginUser loginUser = new LoginUser(); sysUser.setDoctorId(tDoctor.getId());