diff options
author | zeripath <art27@cantab.net> | 2021-09-02 13:14:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-02 13:14:37 +0100 |
commit | 268b2d0c91fe7ff792ba22df5e11d34446224fb6 (patch) | |
tree | 535dae6409d7f7deee7826bb9951a61c1400e387 /templates/repo/settings | |
parent | 9b4280ea4b7a76cb04c1b246f9cdd812caba544f (diff) | |
download | gitea-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/repo/settings')
-rw-r--r-- | templates/repo/settings/options.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 054df7c368..4054158544 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -198,7 +198,7 @@ <input type="hidden" name="action" value="push-mirror-add"> <div class="field {{if .Err_PushMirrorAddress}}error{{end}}"> <label for="push_mirror_address">{{.i18n.Tr "repo.settings.mirror_settings.push_mirror.remote_url"}}</label> - <input id="push_mirror_address" name="push_mirror_address" value="{{.push_mirror_address}}" required> + <input id="push_mirror_address" name="push_mirror_address" value="{{.push_mirror_address}}" autocomplete="off" required> <p class="help">{{.i18n.Tr "repo.mirror_address_desc"}}</p> </div> <details class="ui optional field" {{if or .Err_PushMirrorAuth .push_mirror_username}}open{{end}}> |