|
@@ -88,6 +88,8 @@ public class CustomAuthenticationFailureHandler extends SimpleUrlAuthenticationF
|
|
|
user.setErrNum(errNum);
|
|
|
sysUserService.updateUser(user);
|
|
|
} else {
|
|
|
+
|
|
|
+ LoginFactory.recordLogininfor(username, Constants.LOGIN_FAIL, "连续登录失败");
|
|
|
errorTips = "用户锁定,稍后再试";
|
|
|
user.setErrNum(0);
|
|
|
user.setStatus("1");
|
|
@@ -102,9 +104,9 @@ public class CustomAuthenticationFailureHandler extends SimpleUrlAuthenticationF
|
|
|
|
|
|
// 通知系统管理员
|
|
|
if ("0".equals(noticeWay)){
|
|
|
- log.info("发送邮箱登录失败\r\n" +
|
|
|
+ log.info("发送邮箱连续登录失败\r\n" +
|
|
|
"↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓邮箱内容↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓"+
|
|
|
- "\r\n 账号:"+user.getUsername()+" 登录失败:"+errCount+"次,锁定账号! \r\n" +
|
|
|
+ "\r\n 账号:"+user.getUsername()+" 连续登录失败:"+errCount+"次,锁定账号! \r\n" +
|
|
|
"↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑邮箱内容↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑");
|
|
|
// log.info("发送邮箱通知系统管理员后台输出======> "+"账号【"+user.getUsername()+"】登录失败"+errCount+"次,锁定账号!");
|
|
|
// List<SysUser> sysUserList = sysUserService.selectUserByRole("1");
|