diff options
author | David Schneiderbauer <daviian@users.noreply.github.com> | 2018-05-16 16:18:13 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-05-16 22:18:13 +0800 |
commit | 80d1998981252bd5956b618b11115f1bf67cfd68 (patch) | |
tree | 1f32eb1fb3e0f8a14f59f713fe9c6dbadd01aac0 /modules/auth/user_form.go | |
parent | d79829fc472f7374228bcd5eb30efcbfcad2a4c2 (diff) | |
download | gitea-80d1998981252bd5956b618b11115f1bf67cfd68.tar.gz gitea-80d1998981252bd5956b618b11115f1bf67cfd68.zip |
add missing token validation and fix missing alert on application settings page (#3976)
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r-- | modules/auth/user_form.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index 5906abcd1d..1b00f62634 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -184,7 +184,7 @@ func (f *AddKeyForm) Validate(ctx *macaron.Context, errs binding.Errors) binding // NewAccessTokenForm form for creating access token type NewAccessTokenForm struct { - Name string `binding:"Required"` + Name string `binding:"Required;MaxSize(255)"` } // Validate valideates the fields |