summaryrefslogtreecommitdiffstats
path: root/modules/auth/auth.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-28 18:33:09 +0800
committerUnknwon <u@gogs.io>2015-08-28 18:33:09 +0800
commitbb3b90fcd640f8b80c70a87ec110acba3d3d9c68 (patch)
tree898fa1a7a5a650c73fb8028beb9d160fbf944c51 /modules/auth/auth.go
parent46bee50e45ef8f3e9f3727649fa24d50bb2fc782 (diff)
downloadgitea-bb3b90fcd640f8b80c70a87ec110acba3d3d9c68.tar.gz
gitea-bb3b90fcd640f8b80c70a87ec110acba3d3d9c68.zip
#1487 Readme Template
Diffstat (limited to 'modules/auth/auth.go')
-rw-r--r--modules/auth/auth.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/auth/auth.go b/modules/auth/auth.go
index 825bbd3c9c..71cb2bb28b 100644
--- a/modules/auth/auth.go
+++ b/modules/auth/auth.go
@@ -194,6 +194,12 @@ func GetMaxSize(field reflect.StructField) string {
return getSize(field, "MaxSize(")
}
+// FIXME: struct contains a struct
+func validateStruct(obj interface{}) binding.Errors {
+
+ return nil
+}
+
func validate(errs binding.Errors, data map[string]interface{}, f Form, l macaron.Locale) binding.Errors {
if errs.Len() == 0 {
return errs