退出登录,让token 过期
continuous-integration/drone/push Build is passing Details

IRC_NewDev
hang 2024-09-20 16:54:06 +08:00
parent 83d3a547d1
commit d3e3ed79ba
1 changed files with 1 additions and 0 deletions

View File

@ -817,6 +817,7 @@ namespace IRaCIS.Core.Application.Service
[HttpGet]
public async Task<IResponseOutput> LoginOut(Guid userId)
{
await _fusionCache.RemoveAsync(CacheKeys.UserToken(_userInfo.Id));
await _userLogRepository.AddAsync(new UserLog() { IP = _userInfo.IP, LoginUserId = userId, OptUserId = _userInfo.Id, OptType = UserOptType.LoginOut }, true);
return ResponseOutput.Ok();