add missing token validation on application settings page (#3976) (#3978)

This commit is contained in:
David Schneiderbauer 2018-05-16 17:55:14 +02:00 committed by Lunny Xiao
parent 50adbb7134
commit 5f169bfcfd

View File

@ -182,7 +182,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