musician saas nextcloud fix broken production change pasword

This commit is contained in:
Jorge Pastor 2024-11-29 13:46:59 +01:00
parent 6fc65d2f9d
commit b7da44b6ba

View file

@ -89,8 +89,9 @@ class NextcloudChangePasswordForm(ChangePasswordForm):
super(NextcloudChangePasswordForm, self).__init__(*args, **kwargs) super(NextcloudChangePasswordForm, self).__init__(*args, **kwargs)
self.fields['password'].help_text = _("Suggestion: %s") % random_ascii(20) self.fields['password'].help_text = _("Suggestion: %s") % random_ascii(20)
def clean_password(self): def clean_password2(self):
password = self.cleaned_data.get("password") super().clean_password2()
password = self.cleaned_data.get("password2")
self.fields['password'] = password self.fields['password'] = password
self.instance.set_password(password) self.instance.set_password(password)