diff --git a/README b/README index b1b5b28..2951df6 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ # Installation - apt-get install libldap2-dev python-dev libmysqlclient-dev libsasl2-dev + apt-get install libldap2-dev python-dev libmysqlclient-dev libsasl2-dev libldap2-dev libssl-dev virtualenv venv . venv/bin/activate pip install -r requirements.txt diff --git a/main/forms.py b/main/forms.py index 60e9c57..ed6dbef 100644 --- a/main/forms.py +++ b/main/forms.py @@ -28,7 +28,8 @@ class LDAPSetPasswordForm(SetPasswordForm): # Lookup the Ldap user with the identical username (1-to-1). self.user = LdapUser.objects.get(username=self.user.username) - #self.user.set_password(self.cleaned_data['new_password1']) + # set ldap password + self.user.set_password(self.cleaned_data['new_password1']) if commit: self.user.save()