feat: add ip to struct

This commit is contained in:
Polianin Nikita 2024-05-29 05:27:27 +03:00
parent f4ad1518ef
commit 916b3795ed
2 changed files with 3 additions and 1 deletions

View File

@ -5,5 +5,6 @@ public class PreAuthToken
public required string Fingerprint { get; set; }
public required string UserAgent { get; set; }
public required string UserId { get; set; }
public required string Ip { get; set; }
public required string Token { get; set; }
}

View File

@ -27,7 +27,8 @@ public class PreAuthService(ICacheService cache)
Fingerprint = request.Fingerprint,
UserId = userId,
UserAgent = request.UserAgent,
Token = preAuthToken
Token = preAuthToken,
Ip = request.Ip
};
await cache.SetAsync(