Add username/password auth and login UI

This commit is contained in:
2026-01-29 01:01:13 +01:00
parent ca25d4f0ee
commit f1534b7631
21 changed files with 690 additions and 50 deletions

View File

@@ -9,6 +9,17 @@ public class Player
[MaxLength(64)]
public string? DisplayName { get; set; }
[MaxLength(64)]
public string Username { get; set; } = string.Empty;
[MaxLength(64)]
public string NormalizedUsername { get; set; } = string.Empty;
public byte[] PasswordHash { get; set; } = Array.Empty<byte>();
public byte[] PasswordSalt { get; set; } = Array.Empty<byte>();
public DateTimeOffset? LastLoginAt { get; set; }
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
public ICollection<Suggestion> Suggestions { get; set; } = new List<Suggestion>();