aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/settings/account.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/user/settings/account.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/user/settings/account.tmpl')
-rw-r--r--templates/user/settings/account.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl
index 5be3d5dc51..9ed5d3a6dd 100644
--- a/templates/user/settings/account.tmpl
+++ b/templates/user/settings/account.tmpl
@@ -9,6 +9,7 @@
<div class="ui attached segment">
{{if or (.SignedUser.IsLocal) (.SignedUser.IsOAuth2)}}
<form class="ui form ignore-dirty" action="{{AppSubUrl}}/user/settings/account" method="post">
+ {{template "base/disable_form_autofill"}}
{{.CsrfTokenHtml}}
{{if .SignedUser.IsPasswordSet}}
<div class="required field {{if .Err_OldPassword}}error{{end}}">
@@ -178,8 +179,8 @@
{{ end }}
</div>
<form class="ui form ignore-dirty" id="delete-form" action="{{AppSubUrl}}/user/settings/account/delete" method="post">
+ {{template "base/disable_form_autofill"}}
{{.CsrfTokenHtml}}
- <input class="fake" type="password">
<div class="required field {{if .Err_Password}}error{{end}}">
<label for="password-confirmation">{{.i18n.Tr "password"}}</label>
<input id="password-confirmation" name="password" type="password" autocomplete="off" required>