Mercurial > prosody-hg
comparison plugins/mod_admin_adhoc.lua @ 8770:9c9b198bab84
mod_admin_adhoc: Remove unused initial values [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 01 May 2018 20:51:37 +0200 |
| parents | e809074cdc09 |
| children | 82bdeb8009ce |
comparison
equal
deleted
inserted
replaced
| 8769:e809074cdc09 | 8770:9c9b198bab84 |
|---|---|
| 210 local get_user_password_handler = adhoc_simple(get_user_password_layout, function(fields, err) | 210 local get_user_password_handler = adhoc_simple(get_user_password_layout, function(fields, err) |
| 211 if err then | 211 if err then |
| 212 return generate_error_message(err); | 212 return generate_error_message(err); |
| 213 end | 213 end |
| 214 local user, host, resource = jid.split(fields.accountjid); | 214 local user, host, resource = jid.split(fields.accountjid); |
| 215 local accountjid = ""; | 215 local accountjid; |
| 216 local password = ""; | 216 local password; |
| 217 if host ~= module_host then | 217 if host ~= module_host then |
| 218 return { status = "completed", error = { message = "Tried to get password for a user on " .. host .. " but command was sent to " .. module_host } }; | 218 return { status = "completed", error = { message = "Tried to get password for a user on " .. host .. " but command was sent to " .. module_host } }; |
| 219 elseif usermanager_user_exists(user, host) then | 219 elseif usermanager_user_exists(user, host) then |
| 220 accountjid = fields.accountjid; | 220 accountjid = fields.accountjid; |
| 221 password = usermanager_get_password(user, host); | 221 password = usermanager_get_password(user, host); |
