aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-05-01 20:51:37 +0200
committerKim Alvefur <zash@zash.se>2018-05-01 20:51:37 +0200
commit4488eebd521a4505f25df1353855ab22fca3eab8 (patch)
treea2ebcdeeabcdd8fcf922aec5b3f0840f46f8e3d6
parent7d503c832b7dbdf088814f452e790bef86034831 (diff)
downloadprosody-4488eebd521a4505f25df1353855ab22fca3eab8.tar.gz
prosody-4488eebd521a4505f25df1353855ab22fca3eab8.zip
mod_admin_adhoc: Remove unused initial values [luacheck]
-rw-r--r--plugins/mod_admin_adhoc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index 9c9ce284..0d84e00b 100644
--- a/plugins/mod_admin_adhoc.lua
+++ b/plugins/mod_admin_adhoc.lua
@@ -212,8 +212,8 @@ local get_user_password_handler = adhoc_simple(get_user_password_layout, functio
return generate_error_message(err);
end
local user, host, resource = jid.split(fields.accountjid);
- local accountjid = "";
- local password = "";
+ local accountjid;
+ local password;
if host ~= module_host then
return { status = "completed", error = { message = "Tried to get password for a user on " .. host .. " but command was sent to " .. module_host } };
elseif usermanager_user_exists(user, host) then