Add autocomplete attribute for password input fields in input_setting.html

This commit is contained in:
Théophile Diot 2024-11-12 14:46:04 +01:00
parent b0006a6c94
commit 7d473beefa
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -8,6 +8,7 @@
value="{{ setting_value }}"
data-original="{% if current_endpoint != 'new' %}{{ setting_value }}{% else %}{{ setting_default }}{% endif %}"
data-default="{{ setting_default }}"
{% if setting_data['type'] == 'password' %}autocomplete="off"{% endif %}
{% if disabled %}disabled{% endif %}
{% if required %}required{% endif %}
{% if input_readonly %}readonly{% endif %}>