summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-11 18:52:28 -0500
committerUnknwon <u@gogs.io>2015-12-11 18:52:28 -0500
commit477b4d3b50ec58998b3b078fadbef01eaf1fbeeb (patch)
treea63576c95340c4645662fffe18a76793d2435c9c /modules
parent4d31eb2c0df89ebf029b62fec7e79dbb80773cc3 (diff)
downloadgitea-477b4d3b50ec58998b3b078fadbef01eaf1fbeeb.tar.gz
gitea-477b4d3b50ec58998b3b078fadbef01eaf1fbeeb.zip
#2154 fix form submit error
Diffstat (limited to 'modules')
-rw-r--r--modules/auth/user_form.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index 2942940dee..d4c2dff9c0 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -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)"`