🐛 Fix wrong required status of validate account create request

This commit is contained in:
2025-11-30 17:37:34 +08:00
parent cb62df81e2
commit fdd14b860e

View File

@@ -107,7 +107,6 @@ public class AccountController(
public class AccountCreateValidateRequest
{
[Required]
[MinLength(2)]
[MaxLength(256)]
[RegularExpression(@"^[A-Za-z0-9_-]+$",
@@ -117,7 +116,6 @@ public class AccountController(
[EmailAddress]
[RegularExpression(@"^[^+]+@[^@]+\.[^@]+$", ErrorMessage = "Email address cannot contain '+' symbol.")]
[Required]
[MaxLength(1024)]
public string? Email { get; set; }
}