Tweak username length

This commit is contained in:
Andre Medeiros 2022-05-13 10:29:09 -04:00
parent 69a9101499
commit 6cfdc1ba74

View file

@ -25,7 +25,7 @@ func (u *User) NormalizedName() string {
func (u *User) Validate() error {
return validation.ValidateStruct(u,
validation.Field(&u.Name, validation.Required, validation.Length(3, 32)),
validation.Field(&u.Name, validation.Required, validation.Length(3, 20)),
validation.Field(&u.UserID, validation.Required, validation.Length(4, 9)),
)
}