diff options
author | Kim Alvefur <zash@zash.se> | 2017-07-28 13:15:29 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-07-28 13:15:29 +0200 |
commit | 8dad96d3f6e88e59ed6cd84a62192b15b3374145 (patch) | |
tree | e8ab717facc4069414f7377ed320eeac03dccc66 /plugins/mod_admin_adhoc.lua | |
parent | 239f4bd260a50271572c763403152e11b3fd6381 (diff) | |
download | prosody-8dad96d3f6e88e59ed6cd84a62192b15b3374145.tar.gz prosody-8dad96d3f6e88e59ed6cd84a62192b15b3374145.zip |
core.usermanager, various modules: Disconnect other resources on password change (thanks waqas) (fixes #512)
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-rw-r--r-- | plugins/mod_admin_adhoc.lua | 2 |
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" } }; |