Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 8192:4354f556c5db
core.usermanager, various modules: Disconnect other resources on password change (thanks waqas) (fixes #512)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 28 Jul 2017 13:15:29 +0200 |
parent | 8126:60f6f7ddd2ce |
child | 8201:a0ad62a269df |
child | 8590:4b5a00fffb22 |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sun Aug 06 13:27:47 2017 +0200 +++ b/plugins/mod_admin_telnet.lua Fri Jul 28 13:15:29 2017 +0200 @@ -1030,7 +1030,7 @@ elseif not um.user_exists(username, host) then return nil, "No such user"; end - local ok, err = um.set_password(username, password, host); + local ok, err = um.set_password(username, password, host, nil); if ok then return true, "User password changed"; else