mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 19:11:58 +01:00
add missing token validation and fix missing alert on application settings page (#3976)
This commit is contained in:
parent
d79829fc47
commit
80d1998981
2 changed files with 2 additions and 1 deletions
|
@ -184,7 +184,7 @@ func (f *AddKeyForm) Validate(ctx *macaron.Context, errs binding.Errors) binding
|
||||||
|
|
||||||
// NewAccessTokenForm form for creating access token
|
// NewAccessTokenForm form for creating access token
|
||||||
type NewAccessTokenForm struct {
|
type NewAccessTokenForm struct {
|
||||||
Name string `binding:"Required"`
|
Name string `binding:"Required;MaxSize(255)"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate valideates the fields
|
// Validate valideates the fields
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<div class="user settings applications">
|
<div class="user settings applications">
|
||||||
{{template "user/settings/navbar" .}}
|
{{template "user/settings/navbar" .}}
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
|
{{template "base/alert" .}}
|
||||||
<h4 class="ui top attached header">
|
<h4 class="ui top attached header">
|
||||||
{{.i18n.Tr "settings.manage_access_token"}}
|
{{.i18n.Tr "settings.manage_access_token"}}
|
||||||
</h4>
|
</h4>
|
||||||
|
|
Loading…
Reference in a new issue