Skip to content

Commit

Permalink
add missing token validation and fix missing alert on application set…
Browse files Browse the repository at this point in the history
…tings page (#3976)
  • Loading branch information
daviian authored and lunny committed May 16, 2018
1 parent d79829f commit 80d1998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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 @@ -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
Expand Down
1 change: 1 addition & 0 deletions templates/user/settings/applications.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 80d1998

Please sign in to comment.