修改登录失败提示信息

master
gongzhenkun 2 years ago
parent abe305ded6
commit 99349e2ae5

@ -130,7 +130,7 @@ public class SysLoginService
if (!SecurityUtils.matchesPassword(password, sysUser.getPassword())) { if (!SecurityUtils.matchesPassword(password, sysUser.getPassword())) {
log.info("登录用户:{} 密码不正确.", username); log.info("登录用户:{} 密码不正确.", username);
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.password.not.match"))); 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(); LoginUser loginUser = new LoginUser();
sysUser.setDoctorId(tDoctor.getId()); sysUser.setDoctorId(tDoctor.getId());

Loading…
Cancel
Save