Add hashing and other security features #12
@ -5,5 +5,6 @@ public class PreAuthToken
|
|||||||
public required string Fingerprint { get; set; }
|
public required string Fingerprint { get; set; }
|
||||||
public required string UserAgent { get; set; }
|
public required string UserAgent { get; set; }
|
||||||
public required string UserId { get; set; }
|
public required string UserId { get; set; }
|
||||||
|
public required string Ip { get; set; }
|
||||||
public required string Token { get; set; }
|
public required string Token { get; set; }
|
||||||
}
|
}
|
@ -27,7 +27,8 @@ public class PreAuthService(ICacheService cache)
|
|||||||
Fingerprint = request.Fingerprint,
|
Fingerprint = request.Fingerprint,
|
||||||
UserId = userId,
|
UserId = userId,
|
||||||
UserAgent = request.UserAgent,
|
UserAgent = request.UserAgent,
|
||||||
Token = preAuthToken
|
Token = preAuthToken,
|
||||||
|
Ip = request.Ip
|
||||||
};
|
};
|
||||||
|
|
||||||
await cache.SetAsync(
|
await cache.SetAsync(
|
||||||
|
Loading…
Reference in New Issue
Block a user