fix: browser hints for password fields

Co-authored-by: eNV25 <env252525@gmail.com>
Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
moson-mo 2023-06-11 21:04:35 +02:00
parent ed17486da6
commit 58158505b0
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
2 changed files with 5 additions and 5 deletions

View file

@ -246,7 +246,7 @@
<label for="id_passwd1">
{% trans %}Password{% endtrans %}:
</label>
<input id="id_passwd1" type="password"
<input id="id_passwd1" type="password" autocomplete="new-password"
size="30" name="P" value="{{ P or '' }}">
</p>
@ -255,7 +255,7 @@
{% trans %}Re-type password{% endtrans %}:
</label>
<input id="id_passwd2" type="password"
<input id="id_passwd2" type="password" autocomplete="new-password"
size="30" name="C" value="{{ C or '' }}">
</p>
</fieldset>
@ -333,7 +333,7 @@
<label for="id_passwd_current">
{% trans %}Your current password{% endtrans %}:
</label>
<input id="id_passwd_current" type="password"
<input id="id_passwd_current" type="password" autocomplete="current-password"
size="30" name="passwd" id="id_passwd_current">
</p>
{% else %}

View file

@ -26,14 +26,14 @@
<tr>
<td>{% trans %}Enter your new password:{% endtrans %}</td>
<td>
<input type="password" name="password" size="30"
<input type="password" name="password" size="30" autocomplete="new-password"
value="{{ password or '' }}">
</td>
</tr>
<tr>
<td>{% trans %}Confirm your new password:{% endtrans %}</td>
<td>
<input type="password" name="confirm" size="30"
<input type="password" name="confirm" size="30" autocomplete="new-password"
value="{{ confirm or '' }}">
</td>
</tr>