mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 05:07:43 +00:00
Tweak username length
This commit is contained in:
parent
69a9101499
commit
6cfdc1ba74
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ func (u *User) NormalizedName() string {
|
||||||
|
|
||||||
func (u *User) Validate() error {
|
func (u *User) Validate() error {
|
||||||
return validation.ValidateStruct(u,
|
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)),
|
validation.Field(&u.UserID, validation.Required, validation.Length(4, 9)),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue