diff options
author | Unknwon <u@gogs.io> | 2016-08-28 01:41:44 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-28 01:41:44 -0700 |
commit | 0114fdcba40270731d59fe24e8fa6c6147d69e01 (patch) | |
tree | 3cd62e41ad1ed6172e2ba1c16a5e06df39be147d /modules/auth | |
parent | dad5c155202a79514e60e73ac019191218167d35 (diff) | |
download | gitea-0114fdcba40270731d59fe24e8fa6c6147d69e01.tar.gz gitea-0114fdcba40270731d59fe24e8fa6c6147d69e01.zip |
Web editor: improve delete file process
Diffstat (limited to 'modules/auth')
-rw-r--r-- | modules/auth/repo_form.go | 3 |
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 { |