管理员重置密码成功后,强退已经登录的用户(后端未修改代码)

master
yaoxin 2024-04-12 15:13:56 +08:00
parent 1af5560873
commit 00c1b5e264
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ public class SysUserOnlineController extends BaseController {
@Log(title = "在线用户", businessType = BusinessType.FORCE)
@DeleteMapping("/{tokenId}")
public Result forceLogout (@PathVariable String tokenId) {
System.out.println(tokenId);
redisService.deleteObject(CacheConstants.LOGIN_TOKEN_KEY + tokenId);
return success();
}