aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-15 23:52:46 -0500
committerUnknwon <u@gogs.io>2015-11-15 23:52:46 -0500
commit18de67380c5049d6a4d10cc3f6f8fd80a9ac7a89 (patch)
treec5f142fdee161a61867756631ae63b439e7d902f /modules/auth
parent1a901433e2a27e5bcd29216fdb57082be620b745 (diff)
downloadgitea-18de67380c5049d6a4d10cc3f6f8fd80a9ac7a89.tar.gz
gitea-18de67380c5049d6a4d10cc3f6f8fd80a9ac7a89.zip
fix #1958
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/repo_form.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index 766f540f40..8e10dc24db 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -215,12 +215,12 @@ func (f *CreateLabelForm) Validate(ctx *macaron.Context, errs binding.Errors) bi
// \/ \/ \/ \/ \/ \/
type NewReleaseForm struct {
- TagName string `form:"tag_name" binding:"Required"`
+ TagName string `binding:"Required"`
Target string `form:"tag_target" binding:"Required"`
- Title string `form:"title" binding:"Required"`
- Content string `form:"content" binding:"Required"`
- Draft string `form:"draft"`
- Prerelease bool `form:"prerelease"`
+ Title string `binding:"Required"`
+ Content string
+ Draft string
+ Prerelease bool
}
func (f *NewReleaseForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {