Add autocomplete attribute to password inputs to change password

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2023-02-15 14:01:20 +01:00
parent 8cf6775938
commit d525a722b1
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -24,13 +24,13 @@
{% trans 'Enter:' %}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="password" spellcheck="false" name="pma_pw" id="text_pma_change_pw" size="10" class="textfield"
onkeyup="Functions.checkPasswordStrength($(this).val(), $('#change_password_strength_meter'), meter_obj_label = $('#change_password_strength'), CommonParams.get('user'));"
onchange="nopass[1].checked = true">
onchange="nopass[1].checked = true" autocomplete="new-password">
<span>{% trans %}Strength:{% context %}Password strength{% endtrans %}</span>
<meter max="4" id="change_password_strength_meter" name="pw_meter"></meter>
<span id="change_password_strength" name="pw_strength"></span>
<br>
{% trans 'Re-type:' %}&nbsp;
<input type="password" spellcheck="false" name="pma_pw2" id="text_pma_change_pw2" size="10" class="textfield" onchange="nopass[1].checked = true">
<input type="password" spellcheck="false" name="pma_pw2" id="text_pma_change_pw2" size="10" class="textfield" onchange="nopass[1].checked = true" autocomplete="new-password">
</td>
</tr>