Skip to content

Commit 80d1998

Browse files
daviianlunny
authored andcommitted
add missing token validation and fix missing alert on application settings page (#3976)
1 parent d79829f commit 80d1998

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

modules/auth/user_form.go

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

185185
// NewAccessTokenForm form for creating access token
186186
type NewAccessTokenForm struct {
187-
Name string `binding:"Required"`
187+
Name string `binding:"Required;MaxSize(255)"`
188188
}
189189

190190
// Validate valideates the fields

templates/user/settings/applications.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<div class="user settings applications">
33
{{template "user/settings/navbar" .}}
44
<div class="ui container">
5+
{{template "base/alert" .}}
56
<h4 class="ui top attached header">
67
{{.i18n.Tr "settings.manage_access_token"}}
78
</h4>

0 commit comments

Comments
 (0)