Persist in LDAP too

This commit is contained in:
nikolark committed 2014-08-04 13:45:37 +02:00
1 parent d04dec5bcb
commit 8cfc9fb8e5
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -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
+2 -1
View File
@@ -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()