Skip to content

Commit c1b4d64

Browse files
committed
add missing token validation on application settings page (go-gitea#3976)
1 parent 50adbb7 commit c1b4d64

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)