Browse Source

remove max length on username

abhishek9686 8 months ago
parent
commit
584d90e395
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/user_mgmt.go

+ 1 - 1
models/user_mgmt.go

@@ -143,7 +143,7 @@ type UserGroup struct {
 
 // User struct - struct for Users
 type User struct {
-	UserName                   string                                `json:"username" bson:"username" validate:"min=3,max=40,in_charset|email"`
+	UserName                   string                                `json:"username" bson:"username" validate:"min=3,in_charset|email"`
 	ExternalIdentityProviderID string                                `json:"external_identity_provider_id"`
 	Password                   string                                `json:"password" bson:"password" validate:"required,min=5"`
 	IsAdmin                    bool                                  `json:"isadmin" bson:"isadmin"` // deprecated