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 | 73b75571e6546448dac8a67c6c231c14851ccac1 (patch) | |
tree | e8ab717facc4069414f7377ed320eeac03dccc66 /plugins/mod_admin_adhoc.lua | |
parent | cc8653d31c87dcdf4d140697e87b57ca5130d9d5 (diff) | |
download | prosody-73b75571e6546448dac8a67c6c231c14851ccac1.tar.gz prosody-73b75571e6546448dac8a67c6c231c14851ccac1.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" } }; |