管理员重置密码成功后,强退已经登录的用户(后端未修改代码)
parent
1af5560873
commit
00c1b5e264
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue