diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2021-10-19 06:08:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 01:08:41 +0300 |
commit | 4822eed99dc20742fcea5c31c9a9a192188a53e0 (patch) | |
tree | 119697fb3ba115a7c098790320bb822b43a06654 /templates/repo/settings/webhook/gitea.tmpl | |
parent | c59afa752d9746af6d870635ce3baaaff67b8027 (diff) | |
download | gitea-4822eed99dc20742fcea5c31c9a9a192188a53e0.tar.gz gitea-4822eed99dc20742fcea5c31c9a9a192188a53e0.zip |
Disable form autofill (#17291)
]* fix aria-hidden and tabindex
* use {{template "base/disable_form_autofill"}} instead of {{DisableFormAutofill}}
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates/repo/settings/webhook/gitea.tmpl')
-rw-r--r-- | templates/repo/settings/webhook/gitea.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/webhook/gitea.tmpl b/templates/repo/settings/webhook/gitea.tmpl index bd91ce9e9c..09c49500a4 100644 --- a/templates/repo/settings/webhook/gitea.tmpl +++ b/templates/repo/settings/webhook/gitea.tmpl @@ -1,6 +1,7 @@ {{if eq .HookType "gitea"}} <p>{{.i18n.Tr "repo.settings.add_webhook_desc" "https://docs.gitea.io/en-us/webhooks/" | Str2html}}</p> <form class="ui form" action="{{.BaseLink}}/gitea/{{or .Webhook.ID "new"}}" method="post"> + {{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}} <div class="required field {{if .Err_PayloadURL}}error{{end}}"> <label for="payload_url">{{.i18n.Tr "repo.settings.payload_url"}}</label> @@ -30,7 +31,6 @@ </div> </div> </div> - <input class="fake" type="password"> <div class="field {{if .Err_Secret}}error{{end}}"> <label for="secret">{{.i18n.Tr "repo.settings.secret"}}</label> <input id="secret" name="secret" type="password" value="{{.Webhook.Secret}}" autocomplete="off"> |