aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/auth.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-08 22:12:05 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-08 22:12:05 -0400
commit09dba7d63edb0b34e62bf264077a66ef365638c9 (patch)
tree79edc241d84d85f55266c6b7fe798473958d0ed0 /modules/auth/auth.go
parent3f4c040f3f7686f2534bf7e6f61877844b431e48 (diff)
downloadgitea-09dba7d63edb0b34e62bf264077a66ef365638c9.tar.gz
gitea-09dba7d63edb0b34e62bf264077a66ef365638c9.zip
Clean names
Diffstat (limited to 'modules/auth/auth.go')
-rw-r--r--modules/auth/auth.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/auth/auth.go b/modules/auth/auth.go
index a7b281e4c9..4587b3835b 100644
--- a/modules/auth/auth.go
+++ b/modules/auth/auth.go
@@ -39,7 +39,7 @@ func (f *RegisterForm) Name(field string) string {
return names[field]
}
-func (f *RegisterForm) Validate(errs *binding.BindingErrors, req *http.Request, ctx martini.Context) {
+func (f *RegisterForm) Validate(errs *binding.Errors, req *http.Request, ctx martini.Context) {
data := ctx.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errs, data, f)
}
@@ -58,7 +58,7 @@ func (f *LogInForm) Name(field string) string {
return names[field]
}
-func (f *LogInForm) Validate(errs *binding.BindingErrors, req *http.Request, ctx martini.Context) {
+func (f *LogInForm) Validate(errs *binding.Errors, req *http.Request, ctx martini.Context) {
data := ctx.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errs, data, f)
}
@@ -72,7 +72,7 @@ func GetMinMaxSize(field reflect.StructField) string {
return ""
}
-func validate(errs *binding.BindingErrors, data base.TmplData, f Form) {
+func validate(errs *binding.Errors, data base.TmplData, f Form) {
if errs.Count() == 0 {
return
} else if len(errs.Overall) > 0 {
@@ -182,7 +182,7 @@ func (f *InstallForm) Name(field string) string {
return names[field]
}
-func (f *InstallForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) {
+func (f *InstallForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) {
data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errors, data, f)
}