fix: administrator add user failure
This commit is contained in:
+1
-1
@@ -7829,7 +7829,7 @@ const docTemplate = `{
|
||||
"display_name": {
|
||||
"type": "string",
|
||||
"maxLength": 30,
|
||||
"minLength": 4
|
||||
"minLength": 2
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
|
||||
+1
-1
@@ -7802,7 +7802,7 @@
|
||||
"display_name": {
|
||||
"type": "string",
|
||||
"maxLength": 30,
|
||||
"minLength": 4
|
||||
"minLength": 2
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
|
||||
+1
-1
@@ -270,7 +270,7 @@ definitions:
|
||||
properties:
|
||||
display_name:
|
||||
maxLength: 30
|
||||
minLength: 4
|
||||
minLength: 2
|
||||
type: string
|
||||
email:
|
||||
maxLength: 500
|
||||
|
||||
@@ -120,7 +120,7 @@ type EditUserProfileReq struct {
|
||||
|
||||
// AddUserReq add user request
|
||||
type AddUserReq struct {
|
||||
DisplayName string `validate:"required,gte=4,lte=30" json:"display_name"`
|
||||
DisplayName string `validate:"required,gte=2,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:"-"`
|
||||
|
||||
Reference in New Issue
Block a user