feat: add ip to struct
This commit is contained in:
parent
f4ad1518ef
commit
916b3795ed
@ -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; }
|
||||
}
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user