mirror of https://gitee.com/answerdev/answer.git
update site_name sanitizer
This commit is contained in:
parent
10dd9e23f4
commit
9870ed87fb
|
@ -78,7 +78,7 @@ type InitEnvironmentResp struct {
|
|||
// InitBaseInfoReq init base info request
|
||||
type InitBaseInfoReq struct {
|
||||
Language string `validate:"required,gt=0,lte=30" json:"lang"`
|
||||
SiteName string `validate:"required,gt=0,lte=30" json:"site_name"`
|
||||
SiteName string `validate:"required,sanitizer,gt=0,lte=30" json:"site_name"`
|
||||
SiteURL string `validate:"required,gt=0,lte=512,url" json:"site_url"`
|
||||
ContactEmail string `validate:"required,email,gt=0,lte=500" json:"contact_email"`
|
||||
AdminName string `validate:"required,gt=3,lte=30" json:"name"`
|
||||
|
|
Loading…
Reference in New Issue