|
|
@ -1,23 +1,23 @@
|
|
|
|
package org.dromara.system.controller.monitor;
|
|
|
|
package org.dromara.system.controller.monitor;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
|
|
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import org.dromara.common.core.constant.GlobalConstants;
|
|
|
|
import org.dromara.common.core.constant.CacheConstants;
|
|
|
|
import org.dromara.common.core.domain.R;
|
|
|
|
import org.dromara.common.core.domain.R;
|
|
|
|
import org.dromara.common.web.core.BaseController;
|
|
|
|
|
|
|
|
import org.dromara.common.excel.utils.ExcelUtil;
|
|
|
|
import org.dromara.common.excel.utils.ExcelUtil;
|
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
import org.dromara.common.redis.utils.RedisUtils;
|
|
|
|
import org.dromara.common.redis.utils.RedisUtils;
|
|
|
|
|
|
|
|
import org.dromara.common.web.core.BaseController;
|
|
|
|
import org.dromara.system.domain.bo.SysLogininforBo;
|
|
|
|
import org.dromara.system.domain.bo.SysLogininforBo;
|
|
|
|
import org.dromara.system.domain.vo.SysLogininforVo;
|
|
|
|
import org.dromara.system.domain.vo.SysLogininforVo;
|
|
|
|
import org.dromara.system.service.ISysLogininforService;
|
|
|
|
import org.dromara.system.service.ISysLogininforService;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -79,7 +79,7 @@ public class SysLogininforController extends BaseController {
|
|
|
|
@Log(title = "账户解锁", businessType = BusinessType.OTHER)
|
|
|
|
@Log(title = "账户解锁", businessType = BusinessType.OTHER)
|
|
|
|
@GetMapping("/unlock/{userName}")
|
|
|
|
@GetMapping("/unlock/{userName}")
|
|
|
|
public R<Void> unlock(@PathVariable("userName") String userName) {
|
|
|
|
public R<Void> unlock(@PathVariable("userName") String userName) {
|
|
|
|
String loginName = GlobalConstants.PWD_ERR_CNT_KEY + userName;
|
|
|
|
String loginName = CacheConstants.PWD_ERR_CNT_KEY + userName;
|
|
|
|
if (RedisUtils.hasKey(loginName)) {
|
|
|
|
if (RedisUtils.hasKey(loginName)) {
|
|
|
|
RedisUtils.deleteObject(loginName);
|
|
|
|
RedisUtils.deleteObject(loginName);
|
|
|
|
}
|
|
|
|
}
|
|
|
|