Преглед изворни кода

add missing token validation and fix missing alert on application settings page (#3976)

tags/v1.5.0-dev
David Schneiderbauer пре 6 година
родитељ
комит
80d1998981
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1
    1
      modules/auth/user_form.go
  2. 1
    0
      templates/user/settings/applications.tmpl

+ 1
- 1
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

+ 1
- 0
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>

Loading…
Откажи
Сачувај