fix(user): Remove admin cache when user logout.

This commit is contained in:
LinkinStars 2023-03-01 11:47:31 +08:00
parent 1de3ec27e5
commit cd742b7560
1 changed files with 1 additions and 0 deletions

View File

@ -203,6 +203,7 @@ func (uc *UserController) UserLogout(ctx *gin.Context) {
return
}
_ = uc.authService.RemoveUserCacheInfo(ctx, accessToken)
_ = uc.authService.RemoveAdminUserCacheInfo(ctx, accessToken)
handler.HandleResponse(ctx, nil, nil)
}