From b7da44b6ba18613f00d2c3fd4209e4d6d21f2edb Mon Sep 17 00:00:00 2001 From: jorgepastorr Date: Fri, 29 Nov 2024 13:46:59 +0100 Subject: [PATCH] musician saas nextcloud fix broken production change pasword --- orchestra/contrib/musician/saas/forms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/orchestra/contrib/musician/saas/forms.py b/orchestra/contrib/musician/saas/forms.py index 0c77d16d..d6ab5b76 100644 --- a/orchestra/contrib/musician/saas/forms.py +++ b/orchestra/contrib/musician/saas/forms.py @@ -89,8 +89,9 @@ class NextcloudChangePasswordForm(ChangePasswordForm): super(NextcloudChangePasswordForm, self).__init__(*args, **kwargs) self.fields['password'].help_text = _("Suggestion: %s") % random_ascii(20) - def clean_password(self): - password = self.cleaned_data.get("password") + def clean_password2(self): + super().clean_password2() + password = self.cleaned_data.get("password2") self.fields['password'] = password self.instance.set_password(password)