Limit player name lengths and fix vote UI defaults
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user