summaryrefslogtreecommitdiffstats
path: root/templates/install.tmpl
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/install.tmpl
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/install.tmpl')
-rw-r--r--templates/install.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/install.tmpl b/templates/install.tmpl
index 6dc5e58e4f..27cf1034c5 100644
--- a/templates/install.tmpl
+++ b/templates/install.tmpl
@@ -284,11 +284,11 @@
</div>
<div class="inline field {{if .Err_AdminPasswd}}error{{end}}">
<label for="admin_passwd">{{.i18n.Tr "install.admin_password"}}</label>
- <input id="admin_passwd" name="admin_passwd" type="password" value="{{.admin_passwd}}">
+ <input id="admin_passwd" name="admin_passwd" type="password" autocomplete="new-password" value="{{.admin_passwd}}">
</div>
<div class="inline field {{if .Err_AdminPasswd}}error{{end}}">
<label for="admin_confirm_passwd">{{.i18n.Tr "install.confirm_password"}}</label>
- <input id="admin_confirm_passwd" name="admin_confirm_passwd" type="password" value="{{.admin_confirm_passwd}}">
+ <input id="admin_confirm_passwd" name="admin_confirm_passwd" autocomplete="new-password" type="password" value="{{.admin_confirm_passwd}}">
</div>
<div class="inline field {{if .Err_AdminEmail}}error{{end}}">
<label for="admin_email">{{.i18n.Tr "install.admin_email"}}</label>