mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
Update RegistrationRequest.cs
This commit is contained in:
@@ -8,11 +8,11 @@ public record RegistrationRequest
|
|||||||
[Required]
|
[Required]
|
||||||
[StringLength(UserValidator.MAX_LENGHT_OF_NAME,
|
[StringLength(UserValidator.MAX_LENGHT_OF_NAME,
|
||||||
MinimumLength = UserValidator.MIN_LENGHT_OF_NAME,
|
MinimumLength = UserValidator.MIN_LENGHT_OF_NAME,
|
||||||
ErrorMessage = "Username must be between 4 and 50 characters.")]
|
ErrorMessage = "Username must be between 4 and 44 characters.")]
|
||||||
public string Name { get; init; }
|
public string Name { get; init; }
|
||||||
[Required]
|
[Required]
|
||||||
[MinLength(8)]
|
[MinLength(8)]
|
||||||
public string Password { get; init; }
|
public string Password { get; init; }
|
||||||
[MinLength(InvitationValidator.MIN_INVITATION_LENGTH)]
|
[MinLength(InvitationValidator.MIN_INVITATION_LENGTH)]
|
||||||
public string InviteLink { get; init; }
|
public string InviteLink { get; init; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user