Don't print LDAP user passwords in log.

This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2015-07-13 19:50:58 +05:30
1 parent d65d2c4725
commit b1c9c81d58
3 files changed
+24 -12

No files matched your search

+4 -2
View File
@@ -62,7 +62,8 @@ class CreateUserForm(UserCreationForm):
try:
actions.superuser_run(
'create-ldap-user',
[user.get_username(), self.cleaned_data['password1']])
[user.get_username(), self.cleaned_data['password1']],
log_full_command=False)
except ActionError:
messages.error(self.request,
_('Creating LDAP user failed.'))
@@ -155,7 +156,8 @@ class UserChangePasswordForm(SetPasswordForm):
try:
actions.superuser_run(
'change-ldap-user-password',
[user.get_username(), self.cleaned_data['new_password1']])
[user.get_username(), self.cleaned_data['new_password1']],
log_full_command=False)
except ActionError:
messages.error(
self.request,