|
@@ -94,7 +94,7 @@ public class SysLoginService {
|
|
|
if (lastLogininforCount < 1){
|
|
|
//设置用户停用
|
|
|
remoteUserService.updateStatus(user);
|
|
|
- remoteLogService.saveLogininfor(username, Constants.LOGIN_FAIL, "用户已停用,请联系管理员");
|
|
|
+ remoteLogService.saveLogininfor(username, Constants.LOGIN_OUT_TIME, "超过15天未登录已停用");
|
|
|
throw new BaseException("对不起,您的账号:" + username + "超过15天未登录 已停用,请联系管理员");
|
|
|
}
|
|
|
}
|
|
@@ -142,7 +142,7 @@ public class SysLoginService {
|
|
|
if (lastLogininforCount < 1) {
|
|
|
//设置用户停用
|
|
|
remoteUserService.updateStatus(user);
|
|
|
- remoteLogService.saveLogininfor(userName, Constants.LOGIN_FAIL, "用户已停用,请联系管理员");
|
|
|
+ remoteLogService.saveLogininfor(userName, Constants.LOGIN_OUT_TIME, "超过15天未登录已停用");
|
|
|
throw new BaseException("对不起,您的账号:" + userName + "超过15天未登录 已停用,请联系管理员");
|
|
|
}
|
|
|
}
|