From 1c523e212913cdb6fc2b0709af7f4c910d1728c8 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 9 Oct 2020 09:32:30 +0200 Subject: 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 --- templates/user/auth/change_passwd_inner.tmpl | 4 ++-- templates/user/auth/reset_passwd.tmpl | 2 +- templates/user/auth/signin_inner.tmpl | 2 +- templates/user/auth/signup_inner.tmpl | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'templates/user/auth') diff --git a/templates/user/auth/change_passwd_inner.tmpl b/templates/user/auth/change_passwd_inner.tmpl index 60d4a210ee..43818e93d2 100644 --- a/templates/user/auth/change_passwd_inner.tmpl +++ b/templates/user/auth/change_passwd_inner.tmpl @@ -9,13 +9,13 @@ {{.CsrfTokenHtml}}
- +
- +
diff --git a/templates/user/auth/reset_passwd.tmpl b/templates/user/auth/reset_passwd.tmpl index 91d5a5ef88..7d60fe4a86 100644 --- a/templates/user/auth/reset_passwd.tmpl +++ b/templates/user/auth/reset_passwd.tmpl @@ -19,7 +19,7 @@ {{if .IsResetForm}}
- +
{{if not .user_signed_in}}
diff --git a/templates/user/auth/signin_inner.tmpl b/templates/user/auth/signin_inner.tmpl index 9f6b3da05d..4d99d378ad 100644 --- a/templates/user/auth/signin_inner.tmpl +++ b/templates/user/auth/signin_inner.tmpl @@ -18,7 +18,7 @@ {{if or (not .DisablePassword) .LinkAccountMode}}
- +
{{end}} {{if not .LinkAccountMode}} diff --git a/templates/user/auth/signup_inner.tmpl b/templates/user/auth/signup_inner.tmpl index e52aa2e881..57dd22db4c 100644 --- a/templates/user/auth/signup_inner.tmpl +++ b/templates/user/auth/signup_inner.tmpl @@ -29,11 +29,11 @@ {{if not .DisablePassword}}
- +
- +
{{end}} {{if and .EnableCaptcha (eq .CaptchaType "image")}} -- cgit v1.2.3