diff options
Diffstat (limited to 'modules/auth/publickey_form.go')
-rw-r--r-- | modules/auth/publickey_form.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/auth/publickey_form.go b/modules/auth/publickey_form.go index 4618a7ea36..5a1d44c04b 100644 --- a/modules/auth/publickey_form.go +++ b/modules/auth/publickey_form.go @@ -6,9 +6,7 @@ package auth import ( "github.com/Unknwon/macaron" - "github.com/macaron-contrib/i18n" - - "github.com/gogits/gogs/modules/middleware/binding" + "github.com/macaron-contrib/binding" ) type AddSSHKeyForm struct { @@ -16,6 +14,6 @@ type AddSSHKeyForm struct { Content string `form:"content" binding:"Required"` } -func (f *AddSSHKeyForm) Validate(ctx *macaron.Context, errs *binding.Errors, l i18n.Locale) { - validate(errs, ctx.Data, f, l) +func (f *AddSSHKeyForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { + return validate(errs, ctx.Data, f, ctx.Locale) } |