mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Bug fixes:
Check if ejabberd is installed when running actions triggered by signals. Encode LDAP passwords as bytes.
This commit is contained in:
1 parent
97220b89f3
commit
d144f6634a
3 files changed
+16
-3
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user