diff options
-rw-r--r-- | modules/auth/user_form.go | 2 | ||||
-rw-r--r-- | templates/user/settings/applications.tmpl | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index 5906abcd1d..1b00f62634 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -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 diff --git a/templates/user/settings/applications.tmpl b/templates/user/settings/applications.tmpl index f1a3e48115..d842644185 100644 --- a/templates/user/settings/applications.tmpl +++ b/templates/user/settings/applications.tmpl @@ -2,6 +2,7 @@ <div class="user settings applications"> {{template "user/settings/navbar" .}} <div class="ui container"> + {{template "base/alert" .}} <h4 class="ui top attached header"> {{.i18n.Tr "settings.manage_access_token"}} </h4> |