diff options
author | 2018-06-30 18:05:51 -0700 | |
---|---|---|
committer | 2018-06-30 18:05:51 -0700 | |
commit | cc1e4f916f9b0eb248f4648951f8e511285c1960 (patch) | |
tree | 250941f2ec6a873cd18b9d7ca53cf608a6c56403 /template/html/create_user.html | |
parent | 240f8017557c356f3048d00c45c2664372d26fa9 (diff) |
Avoid Chrome to autocomplete no-login password fields
Browsers always autocomplete saved passwords even with autocomplete="off".
https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
Diffstat (limited to 'template/html/create_user.html')
-rw-r--r-- | template/html/create_user.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/template/html/create_user.html b/template/html/create_user.html index ada1c13..f46defe 100644 --- a/template/html/create_user.html +++ b/template/html/create_user.html @@ -30,10 +30,10 @@ {{ end }} <label for="form-username">{{ t "Username" }}</label> - <input type="text" name="username" id="form-username" value="{{ .form.Username }}" required autofocus> + <input type="text" name="username" id="form-username" value="{{ .form.Username }}" autocomplete="new-password" required autofocus> <label for="form-password">{{ t "Password" }}</label> - <input type="password" name="password" id="form-password" value="{{ .form.Password }}" required> + <input type="password" name="password" id="form-password" value="{{ .form.Password }}" autocomplete="new-password" required> <label for="form-confirmation">{{ t "Confirmation" }}</label> <input type="password" name="confirmation" id="form-confirmation" value="{{ .form.Confirmation }}" required> |