@@ -717,6 +717,7 @@ namespace IRaCIS.Application.Services
|
||||
var lastLoginLog = await _userLogRepository.Where(x => x.LoginUserId == loginUser.Id).OrderByDescending(x => x.CreateTime).FirstOrDefaultAsync();
|
||||
if (lastLoginLog!=null)
|
||||
{
|
||||
// 与上一次IP不一致
|
||||
if (lastLoginLog.IP != _userInfo.IP)
|
||||
{
|
||||
loginUser.LoginState = 2;
|
||||
|
||||
Reference in New Issue
Block a user