diff options
author | Unknwon <u@gogs.io> | 2016-01-29 17:06:14 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-01-29 17:06:14 -0500 |
commit | 112a7cab31df083983a664e252efcfca4ecb0d7a (patch) | |
tree | f5b450fbc40fb6a2073ba134851aef19c0f1e6aa /modules/auth/org.go | |
parent | ee814bf8d6c70c91bac19059ba37af0d91b2a1e0 (diff) | |
download | gitea-112a7cab31df083983a664e252efcfca4ecb0d7a.tar.gz gitea-112a7cab31df083983a664e252efcfca4ecb0d7a.zip |
#2497 incorrect error handle for team name
Diffstat (limited to 'modules/auth/org.go')
-rw-r--r-- | modules/auth/org.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/auth/org.go b/modules/auth/org.go index 8af4ad55d8..53ef6245d9 100644 --- a/modules/auth/org.go +++ b/modules/auth/org.go @@ -45,9 +45,9 @@ func (f *UpdateOrgSettingForm) Validate(ctx *macaron.Context, errs binding.Error // \/ \/ \/ type CreateTeamForm struct { - TeamName string `form:"team_name" binding:"Required;AlphaDashDot;MaxSize(30)"` - Description string `form:"desc" binding:"MaxSize(255)"` - Permission string `form:"permission"` + TeamName string `binding:"Required;AlphaDashDot;MaxSize(30)"` + Description string `binding:"MaxSize(255)"` + Permission string } func (f *CreateTeamForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { |