Skip to content

Commit 5f169bf

Browse files
daviianlunny
authored andcommitted
add missing token validation on application settings page (#3976) (#3978)
1 parent 50adbb7 commit 5f169bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auth/user_form.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func (f *AddKeyForm) Validate(ctx *macaron.Context, errs binding.Errors) binding
182182

183183
// NewAccessTokenForm form for creating access token
184184
type NewAccessTokenForm struct {
185-
Name string `binding:"Required"`
185+
Name string `binding:"Required;MaxSize(255)"`
186186
}
187187

188188
// Validate valideates the fields

0 commit comments

Comments
 (0)