forked from forgejo/forgejo
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>
This commit is contained in:
parent
9b4280ea4b
commit
268b2d0c91
2 changed files with 2 additions and 2 deletions
|
@ -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}}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue