From 41449899f5b881c081f3e30a5ba82272479183fc Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 13 Jul 2023 13:28:07 +0200 Subject: ✨ button to show password on admin change password form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/forms_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ishtar_common/forms_common.py') diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py index 9e29f35e1..01c03ec45 100644 --- a/ishtar_common/forms_common.py +++ b/ishtar_common/forms_common.py @@ -1219,14 +1219,14 @@ class AccountForm(IshtarForm): hidden_password = forms.CharField( label=_("New password"), max_length=128, - widget=forms.PasswordInput, + widget=forms.PasswordInput(attrs={'autocomplete': 'off', 'data-toggle': 'password'}), required=False, validators=[validators.MinLengthValidator(4)], ) hidden_password_confirm = forms.CharField( label=_("New password (confirmation)"), max_length=128, - widget=forms.PasswordInput, + widget=forms.PasswordInput(attrs={'autocomplete': 'off', 'data-toggle': 'password'}), required=False, ) -- cgit v1.2.3