aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/settings/account.tmpl
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-09-02 13:14:37 +0100
committerGitHub <noreply@github.com>2021-09-02 13:14:37 +0100
commit268b2d0c91fe7ff792ba22df5e11d34446224fb6 (patch)
tree535dae6409d7f7deee7826bb9951a61c1400e387 /templates/user/settings/account.tmpl
parent9b4280ea4b7a76cb04c1b246f9cdd812caba544f (diff)
downloadgitea-268b2d0c91fe7ff792ba22df5e11d34446224fb6.tar.gz
gitea-268b2d0c91fe7ff792ba22df5e11d34446224fb6.zip
Prevent leave changes dialogs due to autofill fields (#16912)
Add ignore-dirty to /user/settings/account Add autocomplete="off" to push_mirror_address form on /:owner/:repo/settings Fix #16861 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates/user/settings/account.tmpl')
-rw-r--r--templates/user/settings/account.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl
index 0468eb7e2a..5be3d5dc51 100644
--- a/templates/user/settings/account.tmpl
+++ b/templates/user/settings/account.tmpl
@@ -8,7 +8,7 @@
</h4>
<div class="ui attached segment">
{{if or (.SignedUser.IsLocal) (.SignedUser.IsOAuth2)}}
- <form class="ui form" action="{{AppSubUrl}}/user/settings/account" method="post">
+ <form class="ui form ignore-dirty" action="{{AppSubUrl}}/user/settings/account" method="post">
{{.CsrfTokenHtml}}
{{if .SignedUser.IsPasswordSet}}
<div class="required field {{if .Err_OldPassword}}error{{end}}">