#2154 fix form submit error
This commit is contained in:
parent
4d31eb2c0d
commit
477b4d3b50
6 changed files with 41 additions and 30 deletions
|
@ -87,7 +87,7 @@ func (f *SignInForm) Validate(ctx *macaron.Context, errs binding.Errors) binding
|
|||
// \/ \/ \/ \/ \/
|
||||
|
||||
type UpdateProfileForm struct {
|
||||
Name string `binding:"Required;MaxSize(35)"`
|
||||
Name string `binding:"OmitEmpty;MaxSize(35)"`
|
||||
FullName string `binding:"MaxSize(100)"`
|
||||
Email string `binding:"Required;Email;MaxSize(254)"`
|
||||
Website string `binding:"Url;MaxSize(100)"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue