plugins/mod_register.lua
changeset 8195 4354f556c5db
parent 8186 49a682d6b427
child 8197 ba9cd8447578
--- 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?