退出登录,让token 过期
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
83d3a547d1
commit
d3e3ed79ba
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue