aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-30 20:46:19 -0500
committerUnknwon <u@gogs.io>2015-11-30 20:46:19 -0500
commitdcb391d3415a84ec893d11b788f776ea89c301c3 (patch)
treed83263075dbbe416cc79691fd87cc1255226ddf5 /modules/auth
parent5a14c3cf9854b2762a82ef6bdd781810380ab666 (diff)
parent830d00066785d131413d1de11ce301bf1f0b818a (diff)
downloadgitea-dcb391d3415a84ec893d11b788f776ea89c301c3.tar.gz
gitea-dcb391d3415a84ec893d11b788f776ea89c301c3.zip
Merge branch 'feature/wiki' into develop
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/repo_form.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index 8e10dc24db..3c5e4ee593 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -237,3 +237,22 @@ type EditReleaseForm struct {
func (f *EditReleaseForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
+
+// __ __.__ __ .__
+// / \ / \__| | _|__|
+// \ \/\/ / | |/ / |
+// \ /| | <| |
+// \__/\ / |__|__|_ \__|
+// \/ \/
+
+type NewWikiForm struct {
+ OldTitle string
+ Title string `binding:"Required"`
+ Content string `binding:"Required"`
+ Message string
+}
+
+// FIXME: use code generation to generate this method.
+func (f *NewWikiForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
+ return validate(errs, ctx.Data, f, ctx.Locale)
+}