diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-05 19:58:13 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-05 19:58:13 -0400 |
commit | 6e3dba2cc559275b5287673957ec855e61b4163a (patch) | |
tree | e7188a38aad06b17663aa48b03b523ab24329c58 /modules/auth/auth.go | |
parent | bbdfe2576966210cfffc830bfbe3731bcf653b3b (diff) | |
download | gitea-6e3dba2cc559275b5287673957ec855e61b4163a.tar.gz gitea-6e3dba2cc559275b5287673957ec855e61b4163a.zip |
Clean repo code
Diffstat (limited to 'modules/auth/auth.go')
-rw-r--r-- | modules/auth/auth.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/modules/auth/auth.go b/modules/auth/auth.go index a0e00c10c5..a7b281e4c9 100644 --- a/modules/auth/auth.go +++ b/modules/auth/auth.go @@ -183,20 +183,6 @@ func (f *InstallForm) Name(field string) string { } func (f *InstallForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) { - if req.Method == "GET" || errors.Count() == 0 { - return - } - data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData) - data["HasError"] = true - AssignForm(f, data) - - if len(errors.Overall) > 0 { - for _, err := range errors.Overall { - log.Error("InstallForm.Validate: %v", err) - } - return - } - validate(errors, data, f) } |