Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove placeholders on change password form. Closes #791

Artur Smęt8d08452304da
diff --git a/saleor/userprofile/forms.py b/saleor/userprofile/forms.py
index 5552630ae2..af119e14af 100644
--- a/saleor/userprofile/forms.py
+++ b/saleor/userprofile/forms.py
@@ -56,6 +56,8 @@ class ChangePasswordForm(UserForm):
def __init__(self, *args, **kwargs):
super(ChangePasswordForm, self).__init__(*args, **kwargs)
self.fields['password1'].user = self.user
+ self.fields['oldpassword'].widget.attrs['placeholder'] = ''
+ self.fields['password1'].widget.attrs['placeholder'] = ''
def clean_oldpassword(self):
if not self.user.check_password(self.cleaned_data.get('oldpassword')):