diff options
author | Unknwon <u@gogs.io> | 2015-08-06 22:48:11 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-06 22:48:11 +0800 |
commit | 39a3b768bc8b0288cb4aa91d27485f46cfbfeb29 (patch) | |
tree | bef625e010018151863344d9da3ff22d2dfbc8f9 /modules/auth/user_form.go | |
parent | 9f12ab0e8847682a686fdb843922a761bbb5c225 (diff) | |
download | gitea-39a3b768bc8b0288cb4aa91d27485f46cfbfeb29.tar.gz gitea-39a3b768bc8b0288cb4aa91d27485f46cfbfeb29.zip |
#334: Add Deployment Key Support
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 { |