From 0114fdcba40270731d59fe24e8fa6c6147d69e01 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 28 Aug 2016 01:41:44 -0700 Subject: Web editor: improve delete file process --- modules/auth/repo_form.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/auth/repo_form.go') diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index e9e60c67..e537da8a 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 { -- cgit v1.2.3