From 5f169bfcfde605ffd56de65a1f4ef85a9b17ab8f Mon Sep 17 00:00:00 2001 From: David Schneiderbauer Date: Wed, 16 May 2018 17:55:14 +0200 Subject: [PATCH] add missing token validation on application settings page (#3976) (#3978) --- modules/auth/user_form.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index d913822a8..21bc4eee2 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -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