summaryrefslogtreecommitdiffstats
path: root/modules/auth
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-28 01:41:44 -0700
committerUnknwon <u@gogs.io>2016-08-28 01:41:44 -0700
commit0114fdcba40270731d59fe24e8fa6c6147d69e01 (patch)
tree3cd62e41ad1ed6172e2ba1c16a5e06df39be147d /modules/auth
parentdad5c155202a79514e60e73ac019191218167d35 (diff)
downloadgitea-0114fdcba40270731d59fe24e8fa6c6147d69e01.tar.gz
gitea-0114fdcba40270731d59fe24e8fa6c6147d69e01.zip
Web editor: improve delete file process
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/repo_form.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index e9e60c672f..e537da8a6c 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -337,6 +337,9 @@ func (f *RemoveUploadFileForm) Validate(ctx *macaron.Context, errs binding.Error
type DeleteRepoFileForm struct {
CommitSummary string `binding:"MaxSize(100)`
+ CommitMessage string
+ CommitChoice string `binding:"Required;MaxSize(50)"`
+ NewBranchName string `binding:"AlphaDashDot;MaxSize(100)"`
}
func (f *DeleteRepoFileForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {