summaryrefslogtreecommitdiffstats
path: root/templates/user/settings/applications.tmpl
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-05-26 11:42:54 +0200
committerGitHub <noreply@github.com>2023-05-26 09:42:54 +0000
commit85fa954a3810b233cb299f455546c4b2314400b3 (patch)
tree9cf4b3955c59b6c38aba1b1df07d14843aaef375 /templates/user/settings/applications.tmpl
parent18f26cfbf7f9b36b838c0e8762bfba98c89b9797 (diff)
downloadgitea-85fa954a3810b233cb299f455546c4b2314400b3.tar.gz
gitea-85fa954a3810b233cb299f455546c4b2314400b3.zip
Improve some Forms (#24878)
Don't really know a better name for this. I've gone through some Forms and added missing HTML attributes (mostly `maxlength`). I tried to fill the Forms with dummy Data and see if Gitea throws a Error (e.g. maximum length). If yes, I added the missing HTML attribute. While working on this, I discovered that the Form to add OAuth2 Apps just silently fails when filled with invalid data, so I fixed that too.
Diffstat (limited to 'templates/user/settings/applications.tmpl')
-rw-r--r--templates/user/settings/applications.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/applications.tmpl b/templates/user/settings/applications.tmpl
index 84d02c0a00..1c12a0a2b7 100644
--- a/templates/user/settings/applications.tmpl
+++ b/templates/user/settings/applications.tmpl
@@ -45,7 +45,7 @@
{{.CsrfTokenHtml}}
<div class="field {{if .Err_Name}}error{{end}}">
<label for="name">{{.locale.Tr "settings.token_name"}}</label>
- <input id="name" name="name" value="{{.name}}" autofocus required>
+ <input id="name" name="name" value="{{.name}}" autofocus required maxlength="255">
</div>
<!--Temporarily disable-->
<details class="gt-hidden ui optional field">