Limit player name lengths and fix vote UI defaults

This commit is contained in:
2026-02-02 19:39:32 +01:00
parent 1dc67879e5
commit f33545b184
11 changed files with 334 additions and 26 deletions

View File

@@ -6,13 +6,13 @@ public class Player
{
public Guid Id { get; set; } = Guid.NewGuid();
[MaxLength(64)]
[MaxLength(16)]
public string? DisplayName { get; set; }
[MaxLength(64)]
[MaxLength(24)]
public string Username { get; set; } = string.Empty;
[MaxLength(64)]
[MaxLength(24)]
public string NormalizedUsername { get; set; } = string.Empty;
public byte[] PasswordHash { get; set; } = Array.Empty<byte>();