diff options
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r-- | modules/auth/user_form.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index c2dc85413b..0d6987ad82 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -126,8 +126,8 @@ func (f *ChangePasswordForm) Validate(ctx *macaron.Context, errs binding.Errors) } type AddSSHKeyForm struct { - SSHTitle string `form:"title" binding:"Required"` - Content string `form:"content" binding:"Required"` + Title string `binding:"Required;MaxSize(50)"` + Content string `binding:"Required"` } func (f *AddSSHKeyForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { |