diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-05 02:42:52 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-05 02:42:52 -0400 |
commit | 816c0ed5e7bba89a87689e56c19a29617f5f0ea9 (patch) | |
tree | a75a6baf4a476d0962ddf9eb76e946d568584544 /modules/auth/user.go | |
parent | a641854cad6dddda551a2995c765e970f7cea8ba (diff) | |
download | gitea-816c0ed5e7bba89a87689e56c19a29617f5f0ea9.tar.gz gitea-816c0ed5e7bba89a87689e56c19a29617f5f0ea9.zip |
Fix import path
Diffstat (limited to 'modules/auth/user.go')
-rw-r--r-- | modules/auth/user.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/auth/user.go b/modules/auth/user.go index 8d60670db4..0e591398c0 100644 --- a/modules/auth/user.go +++ b/modules/auth/user.go @@ -15,6 +15,7 @@ import ( "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/base" "github.com/gogits/gogs/modules/log" + "github.com/gogits/gogs/modules/middleware/binding" ) // SignedInId returns the id of signed in user. @@ -93,7 +94,7 @@ func (f *UpdateProfileForm) Name(field string) string { return names[field] } -func (f *UpdateProfileForm) Validate(errors *base.BindingErrors, req *http.Request, context martini.Context) { +func (f *UpdateProfileForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) { if req.Method == "GET" || errors.Count() == 0 { return } @@ -126,7 +127,7 @@ func (f *UpdatePasswdForm) Name(field string) string { return names[field] } -func (f *UpdatePasswdForm) Validate(errors *base.BindingErrors, req *http.Request, context martini.Context) { +func (f *UpdatePasswdForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) { if req.Method == "GET" || errors.Count() == 0 { return } |