mod_storage_xep0227: Add scram-credentials to user element rather than server
authorMatthew Wild <mwild1@gmail.com>
Wed, 22 Sep 2021 16:16:30 +0100
changeset 11844 5e9e75c277a2
parent 11843 19b50ce9ef5a
child 11845 94534717ffca
mod_storage_xep0227: Add scram-credentials to user element rather than server
plugins/mod_storage_xep0227.lua
--- a/plugins/mod_storage_xep0227.lua	Tue Oct 05 19:56:36 2021 +0200
+++ b/plugins/mod_storage_xep0227.lua	Wed Sep 22 16:16:30 2021 +0100
@@ -139,7 +139,7 @@
 				:text_tag("stored-key", hex_to_base64(data.stored_key))
 				:text_tag("iter-count", ("%d"):format(data.iteration_count))
 				:text_tag("salt", base64.encode(data.salt));
-			xml:add_child(scram_el);
+			usere:add_child(scram_el);
 			account_properties:exclude(scram_properties);
 		end