summaryrefslogtreecommitdiffstats
path: root/modules/auth
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
parent3f4c040f3f7686f2534bf7e6f61877844b431e48 (diff)
downloadgitea-09dba7d63edb0b34e62bf264077a66ef365638c9.tar.gz
gitea-09dba7d63edb0b34e62bf264077a66ef365638c9.zip
Clean names
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/admin.go2
-rw-r--r--modules/auth/apiv1/miscellaneous.go4
-rw-r--r--modules/auth/auth.go8
-rw-r--r--modules/auth/authentication.go2
-rw-r--r--modules/auth/issue.go2
-rw-r--r--modules/auth/release.go2
-rw-r--r--modules/auth/repo.go8
-rw-r--r--modules/auth/setting.go2
-rw-r--r--modules/auth/user.go4
9 files changed, 17 insertions, 17 deletions
diff --git a/modules/auth/admin.go b/modules/auth/admin.go
index 02a4dc489a..668afd9a35 100644
--- a/modules/auth/admin.go
+++ b/modules/auth/admin.go
@@ -34,7 +34,7 @@ func (f *AdminEditUserForm) Name(field string) string {
return names[field]
}
-func (f *AdminEditUserForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) {
+func (f *AdminEditUserForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) {
data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errors, data, f)
}
diff --git a/modules/auth/apiv1/miscellaneous.go b/modules/auth/apiv1/miscellaneous.go
index 4d0d25659d..726a080147 100644
--- a/modules/auth/apiv1/miscellaneous.go
+++ b/modules/auth/apiv1/miscellaneous.go
@@ -22,12 +22,12 @@ type MarkdownForm struct {
Context string `form:"context"`
}
-func (f *MarkdownForm) Validate(errs *binding.BindingErrors, req *http.Request, ctx martini.Context) {
+func (f *MarkdownForm) Validate(errs *binding.Errors, req *http.Request, ctx martini.Context) {
data := ctx.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validateApiReq(errs, data, f)
}
-func validateApiReq(errs *binding.BindingErrors, data base.TmplData, f interface{}) {
+func validateApiReq(errs *binding.Errors, data base.TmplData, f interface{}) {
if errs.Count() == 0 {
return
} else if len(errs.Overall) > 0 {
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)
}
diff --git a/modules/auth/authentication.go b/modules/auth/authentication.go
index 51a9469cbd..1a5fdcb058 100644
--- a/modules/auth/authentication.go
+++ b/modules/auth/authentication.go
@@ -42,7 +42,7 @@ func (f *AuthenticationForm) Name(field string) string {
return names[field]
}
-func (f *AuthenticationForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) {
+func (f *AuthenticationForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) {
data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errors, data, f)
}
diff --git a/modules/auth/issue.go b/modules/auth/issue.go
index e8f8ac2011..f3cad520ce 100644
--- a/modules/auth/issue.go
+++ b/modules/auth/issue.go
@@ -29,7 +29,7 @@ func (f *CreateIssueForm) Name(field string) string {
return names[field]
}
-func (f *CreateIssueForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) {
+func (f *CreateIssueForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) {
data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errors, data, f)
}
diff --git a/modules/auth/release.go b/modules/auth/release.go
index 7774b914a0..7fadb3c080 100644
--- a/modules/auth/release.go
+++ b/modules/auth/release.go
@@ -30,7 +30,7 @@ func (f *NewReleaseForm) Name(field string) string {
return names[field]
}
-func (f *NewReleaseForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) {
+func (f *NewReleaseForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) {
data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errors, data, f)
}
diff --git a/modules/auth/repo.go b/modules/auth/repo.go
index 37b9f1d1e6..f880cdf5d5 100644
--- a/modules/auth/repo.go
+++ b/modules/auth/repo.go
@@ -31,7 +31,7 @@ func (f *CreateRepoForm) Name(field string) string {
return names[field]
}
-func (f *CreateRepoForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) {
+func (f *CreateRepoForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) {
data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errors, data, f)
}
@@ -55,7 +55,7 @@ func (f *MigrateRepoForm) Name(field string) string {
return names[field]
}
-func (f *MigrateRepoForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) {
+func (f *MigrateRepoForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) {
data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errors, data, f)
}
@@ -79,7 +79,7 @@ func (f *RepoSettingForm) Name(field string) string {
return names[field]
}
-func (f *RepoSettingForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) {
+func (f *RepoSettingForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) {
data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errors, data, f)
}
@@ -100,7 +100,7 @@ func (f *NewWebhookForm) Name(field string) string {
return names[field]
}
-func (f *NewWebhookForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) {
+func (f *NewWebhookForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) {
data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errors, data, f)
}
diff --git a/modules/auth/setting.go b/modules/auth/setting.go
index 7bae2451fb..b828c92b57 100644
--- a/modules/auth/setting.go
+++ b/modules/auth/setting.go
@@ -27,7 +27,7 @@ func (f *AddSSHKeyForm) Name(field string) string {
return names[field]
}
-func (f *AddSSHKeyForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) {
+func (f *AddSSHKeyForm) Validate(errors *binding.Errors, req *http.Request, context martini.Context) {
data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errors, data, f)
}
diff --git a/modules/auth/user.go b/modules/auth/user.go
index bc3216fe36..e672a9c10f 100644
--- a/modules/auth/user.go
+++ b/modules/auth/user.go
@@ -94,7 +94,7 @@ func (f *UpdateProfileForm) Name(field string) string {
return names[field]
}
-func (f *UpdateProfileForm) Validate(errs *binding.BindingErrors, req *http.Request, ctx martini.Context) {
+func (f *UpdateProfileForm) Validate(errs *binding.Errors, req *http.Request, ctx martini.Context) {
data := ctx.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errs, data, f)
}
@@ -114,7 +114,7 @@ func (f *UpdatePasswdForm) Name(field string) string {
return names[field]
}
-func (f *UpdatePasswdForm) Validate(errs *binding.BindingErrors, req *http.Request, ctx martini.Context) {
+func (f *UpdatePasswdForm) Validate(errs *binding.Errors, req *http.Request, ctx martini.Context) {
data := ctx.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData)
validate(errs, data, f)
}