修改异地登录bug 设置最后一次登录的iP
continuous-integration/drone/push Build is passing Details

Uat_IRC_Net8 EICS-V1.10.1
hang 2025-03-26 11:11:34 +08:00
parent 2f3f639918
commit 628e0ad034
1 changed files with 0 additions and 7 deletions

View File

@ -1020,13 +1020,6 @@ namespace IRaCIS.Core.Application.Service
}
await _identityUserRepository.BatchUpdateNoTrackingAsync(x => x.Id == loginUser.IdentityUserId, x => new IdentityUser()
{
LastLoginTime = DateTime.Now,
LastLoginIP = _userInfo.IP,
});
if (loginUser.Status == 0)
{
await _userLogRepository.AddAsync(new UserLog() { IP = _userInfo.IP, ActionIdentityUserId = loginUser.IdentityUserId, ActionUserName = loginUser.UserName, OptType = UserOptType.LoginLockedAccount, IsLoginUncommonly = isLoginUncommonly }, true);