Diff

plugins/mod_register.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 8183:49a682d6b427
child 8194:ba9cd8447578
line wrap: on
line diff
--- a/plugins/mod_register.lua	Sun Aug 06 13:27:47 2017 +0200
+++ b/plugins/mod_register.lua	Fri Jul 28 13:15:29 2017 +0200
@@ -130,7 +130,7 @@
 			local password = query:get_child_text("password");
 			if username and password then
 				if username == session.username then
-					if usermanager_set_password(username, password, session.host) then
+					if usermanager_set_password(username, password, session.host, session.resource) then
 						session.send(st.reply(stanza));
 					else
 						-- TODO unable to write file, file may be locked, etc, what's the correct error?