aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-08-28 21:05:12 +0200
committerKim Alvefur <zash@zash.se>2017-08-28 21:05:12 +0200
commit0f00e8546042a22a56ea63a0fb7387e70bba4d1a (patch)
treefd5a447ceea625acd90410b509ca06e498d25171 /core
parentab793182e77752bd08cf0347a95298312693563b (diff)
parent672ab9595bcadcefa5c8725fd0ba4d7d6089b4f5 (diff)
downloadprosody-0f00e8546042a22a56ea63a0fb7387e70bba4d1a.tar.gz
prosody-0f00e8546042a22a56ea63a0fb7387e70bba4d1a.zip
Merge 0.10->trunk
Diffstat (limited to 'core')
-rw-r--r--core/usermanager.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index d5132662..f795e8ae 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -76,8 +76,12 @@ local function get_password(username, host)
return hosts[host].users.get_password(username);
end
-local function set_password(username, password, host)
- return hosts[host].users.set_password(username, password);
+local function set_password(username, password, host, resource)
+ local ok, err = hosts[host].users.set_password(username, password);
+ if ok then
+ prosody.events.fire_event("user-password-changed", { username = username, host = host, resource = resource });
+ end
+ return ok, err;
end
local function user_exists(username, host)