summaryrefslogtreecommitdiffstats
path: root/templates/repo/settings
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-10-09 09:32:30 +0200
committerGitHub <noreply@github.com>2020-10-09 10:32:30 +0300
commit1c523e212913cdb6fc2b0709af7f4c910d1728c8 (patch)
tree8a0f236537c952f38809ed44fcf06644c02b2d66 /templates/repo/settings
parentea69ec6f0feb357b82dc2572f88184db507e383b (diff)
downloadgitea-1c523e212913cdb6fc2b0709af7f4c910d1728c8.tar.gz
gitea-1c523e212913cdb6fc2b0709af7f4c910d1728c8.zip
Set appropriate `autocomplete` attributes on password fields (#13078)
`new-password` prevents annoying autocompletion in some cases, thought it's not semantically correct to use that for example on all three fields on the user account page, so some annoyances remain. Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates/repo/settings')
-rw-r--r--templates/repo/settings/options.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index f238b1b0ce..ce76a6fefa 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -107,7 +107,7 @@
<input class="fake" type="password">
<div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="mirror_password">{{.i18n.Tr "password"}}</label>
- <input id="mirror_password" name="mirror_password" type="password" value="{{MirrorPassword .Mirror}}" {{if not .mirror_password}}data-need-clear="true"{{end}}>
+ <input id="mirror_password" name="mirror_password" type="password" value="{{MirrorPassword .Mirror}}" {{if not .mirror_password}}data-need-clear="true"{{end}} autocomplete="off">
</div>
</div>
</div>