Skip to content

Commit

Permalink
add missing token validation on application settings page (#3976) (#3978
Browse files Browse the repository at this point in the history
)
  • Loading branch information
daviian authored and lunny committed May 16, 2018
1 parent 50adbb7 commit 5f169bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/auth/user_form.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f169bf

Please sign in to comment.