mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Send LDAP user passwords to actions through stdin, not as arguments.
This commit is contained in:
1 parent
86580c9121
commit
cb7c9c26f7
5 files changed
+30
-11
No files matched your search
@@ -62,7 +62,8 @@ class CreateUserForm(UserCreationForm):
|
||||
try:
|
||||
actions.superuser_run(
|
||||
'create-ldap-user',
|
||||
[user.get_username(), self.cleaned_data['password1']])
|
||||
[user.get_username()],
|
||||
input=self.cleaned_data['password1'])
|
||||
except ActionError:
|
||||
messages.error(self.request,
|
||||
_('Creating LDAP user failed.'))
|
||||
@@ -157,7 +158,8 @@ class UserChangePasswordForm(SetPasswordForm):
|
||||
try:
|
||||
actions.superuser_run(
|
||||
'change-ldap-user-password',
|
||||
[user.get_username(), self.cleaned_data['new_password1']])
|
||||
[user.get_username()],
|
||||
input=self.cleaned_data['new_password1'])
|
||||
except ActionError:
|
||||
messages.error(
|
||||
self.request,
|
||||
|
||||
Reference in new issue
Block a user