add missing token validation and fix missing alert on application settings page (#3976)

This commit is contained in:
David Schneiderbauer authored and Lunny Xiao committed 2018-05-16 22:18:13 +08:00
1 parent d79829fc47
commit 80d1998981
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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