aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_adhoc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-08-28 21:05:12 +0200
committerKim Alvefur <zash@zash.se>2017-08-28 21:05:12 +0200
commit38f73e28ae61f2222667b06ce99e44193ef82d78 (patch)
treefd5a447ceea625acd90410b509ca06e498d25171 /plugins/mod_admin_adhoc.lua
parente9d37d780b2e50e4f3ed34d3c355d651c0375cb2 (diff)
parent7e28119b3d3fe91b2f8541da2af90b232ab38412 (diff)
downloadprosody-38f73e28ae61f2222667b06ce99e44193ef82d78.tar.gz
prosody-38f73e28ae61f2222667b06ce99e44193ef82d78.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-rw-r--r--plugins/mod_admin_adhoc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index 392e715e..f3de6793 100644
--- a/plugins/mod_admin_adhoc.lua
+++ b/plugins/mod_admin_adhoc.lua
@@ -97,7 +97,7 @@ local change_user_password_command_handler = adhoc_simple(change_user_password_l
if module_host ~= host then
return { status = "completed", error = { message = "Trying to change the password of a user on " .. host .. " but command was sent to " .. module_host}};
end
- if usermanager_user_exists(username, host) and usermanager_set_password(username, fields.password, host) then
+ if usermanager_user_exists(username, host) and usermanager_set_password(username, fields.password, host, nil) then
return { status = "completed", info = "Password successfully changed" };
else
return { status = "completed", error = { message = "User does not exist" } };