Add hashing and other security features #12

Merged
Wesser merged 45 commits from feat/add-security into feat/add-setup 2024-05-29 06:42:47 +03:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 916b3795ed - Show all commits

View File

@ -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; }
} }

View File

@ -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(