change username leght to 6
This commit is contained in:
parent
e5f4fd9d62
commit
50d6954829
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ namespace Moonlight.Core.Models.Forms;
|
|||
public class RegisterForm
|
||||
{
|
||||
[Required(ErrorMessage = "You need to provide an username")]
|
||||
[MinLength(7, ErrorMessage = "The username is too short")]
|
||||
[MinLength(6, ErrorMessage = "The username is too short")]
|
||||
[MaxLength(20, ErrorMessage = "The username cannot be longer than 20 characters")]
|
||||
[RegularExpression("^[a-z][a-z0-9]*$", ErrorMessage = "Usernames can only contain lowercase characters and numbers and should not start with a number")]
|
||||
public string Username { get; set; }
|
||||
|
|
Loading…
Reference in a new issue