1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

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
This commit is contained in:
Frédéric Guillot 2018-06-30 18:05:51 -07:00
parent 240f801755
commit cc1e4f916f
10 changed files with 50 additions and 50 deletions

View file

@ -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>