aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin/user/edit.tmpl
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2021-10-19 06:08:41 +0800
committerGitHub <noreply@github.com>2021-10-19 01:08:41 +0300
commit4822eed99dc20742fcea5c31c9a9a192188a53e0 (patch)
tree119697fb3ba115a7c098790320bb822b43a06654 /templates/admin/user/edit.tmpl
parentc59afa752d9746af6d870635ce3baaaff67b8027 (diff)
downloadgitea-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/admin/user/edit.tmpl')
-rw-r--r--templates/admin/user/edit.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl
index 60cd8ad523..fb0ccd22bb 100644
--- a/templates/admin/user/edit.tmpl
+++ b/templates/admin/user/edit.tmpl
@@ -8,6 +8,7 @@
</h4>
<div class="ui attached segment">
<form class="ui form" action="{{.Link}}" method="post">
+ {{template "base/disable_form_autofill"}}
{{.CsrfTokenHtml}}
<div class="field {{if .Err_UserName}}error{{end}}">
<label for="user_name">{{.i18n.Tr "username"}}</label>
@@ -67,7 +68,6 @@
<label for="email">{{.i18n.Tr "email"}}</label>
<input id="email" name="email" type="email" value="{{.User.Email}}" autofocus required>
</div>
- <input class="fake" type="password">
<div class="local field {{if .Err_Password}}error{{end}} {{if not (or (.User.IsLocal) (.User.IsOAuth2))}}hide{{end}}">
<label for="password">{{.i18n.Tr "password"}}</label>
<input id="password" name="password" type="password" autocomplete="new-password">