diff options
author | zeripath <art27@cantab.net> | 2021-09-02 17:00:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-02 17:00:20 +0100 |
commit | 8f300781ad5aa52b004cb394bcc6c703da0303fb (patch) | |
tree | 561b14f2869b6bf5820048970fadf00588f04e61 /templates/user | |
parent | 8b132bdec62258e1586c06977e8861c2468bf730 (diff) | |
download | gitea-8f300781ad5aa52b004cb394bcc6c703da0303fb.tar.gz gitea-8f300781ad5aa52b004cb394bcc6c703da0303fb.zip |
Prevent leave changes dialogs due to autofill fields (#16912) (#16920)
Backport #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')
-rw-r--r-- | templates/user/settings/account.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl index 2e1976aaa9..fa14369660 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}}"> |