From 584d90e3954ae168cb1da1b56f5723cfbb2b16bc Mon Sep 17 00:00:00 2001 From: abhishek9686 Date: Mon, 16 Dec 2024 20:08:21 +0400 Subject: [PATCH] remove max length on username --- models/user_mgmt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/user_mgmt.go b/models/user_mgmt.go index 188d7eba3..0062d2db3 100644 --- a/models/user_mgmt.go +++ b/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