--- a/plugins/mod_admin_adhoc.lua Tue May 01 20:45:22 2018 +0200
+++ b/plugins/mod_admin_adhoc.lua Tue May 01 20:47:52 2018 +0200
@@ -95,7 +95,12 @@
end
local username, host, resource = jid.split(fields.accountjid);
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}};
+ 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, nil) then
return { status = "completed", info = "Password successfully changed" };