Bug fixes:

Check if ejabberd is installed when running actions triggered by signals.
Encode LDAP passwords as bytes.
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2015-07-23 22:30:50 +05:30
1 parent 97220b89f3
commit d144f6634a
3 files changed
+16 -3

No files matched your search

+2 -2
View File
@@ -63,7 +63,7 @@ class CreateUserForm(UserCreationForm):
actions.superuser_run(
'create-ldap-user',
[user.get_username()],
input=self.cleaned_data['password1'])
input=self.cleaned_data['password1'].encode())
except ActionError:
messages.error(self.request,
_('Creating LDAP user failed.'))
@@ -159,7 +159,7 @@ class UserChangePasswordForm(SetPasswordForm):
actions.superuser_run(
'change-ldap-user-password',
[user.get_username()],
input=self.cleaned_data['new_password1'])
input=self.cleaned_data['new_password1'].encode())
except ActionError:
messages.error(
self.request,