若依后台 管理员修改用户密码 用户 重新登录
parent
d49321a37b
commit
171b885a2a
|
@ -12,6 +12,7 @@ import com.muyu.common.security.annotation.RequiresPermissions;
|
|||
import com.muyu.common.system.domain.LoginUser;
|
||||
import com.muyu.system.domain.SysUserOnline;
|
||||
import com.muyu.system.service.SysUserOnlineService;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
@ -27,6 +28,7 @@ import java.util.List;
|
|||
*/
|
||||
@RestController
|
||||
@RequestMapping("/online")
|
||||
@Log4j2
|
||||
public class SysUserOnlineController extends BaseController {
|
||||
@Autowired
|
||||
private SysUserOnlineService userOnlineService;
|
||||
|
@ -63,6 +65,7 @@ public class SysUserOnlineController extends BaseController {
|
|||
@Log(title = "在线用户", businessType = BusinessType.FORCE)
|
||||
@DeleteMapping("/{tokenId}")
|
||||
public Result forceLogout (@PathVariable String tokenId) {
|
||||
log.info("被强制下线的用户的tokenId:{}",tokenId);
|
||||
redisService.deleteObject(CacheConstants.LOGIN_TOKEN_KEY + tokenId);
|
||||
return success();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue