Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix(user): update display name length limit #432

LinkinStarsa1c7a5d70a4b
diff --git a/internal/schema/backyard_user_schema.go b/internal/schema/backyard_user_schema.go
index 995f0187..4232acaa 100644
--- a/internal/schema/backyard_user_schema.go
+++ b/internal/schema/backyard_user_schema.go
@@ -86,7 +86,7 @@ type UpdateUserRoleReq struct {
// AddUserReq add user request
type AddUserReq struct {
- DisplayName string `validate:"required,gt=4,lte=30" json:"display_name"`
+ DisplayName string `validate:"required,gte=4,lte=30" json:"display_name"`
Email string `validate:"required,email,gt=0,lte=500" json:"email"`
Password string `validate:"required,gte=8,lte=32" json:"password"`
LoginUserID string `json:"-"`