Comparison

tools/ejabberd2prosody.lua @ 11841:94534717ffca

ejabberd2prosody: Convert SCRAM iteration count to number (thanks arcseconds)
author Matthew Wild <mwild1@gmail.com>
date Thu, 07 Oct 2021 11:16:46 +0100
parent 6798:8b4c8e957211
child 11842:c20ff585e966
comparison
equal deleted inserted replaced
11840:5e9e75c277a2 11841:94534717ffca
83 end); 83 end);
84 end 84 end
85 data.stored_key = hex(unb64(password[2])); 85 data.stored_key = hex(unb64(password[2]));
86 data.server_key = hex(unb64(password[3])); 86 data.server_key = hex(unb64(password[3]));
87 data.salt = unb64(password[4]); 87 data.salt = unb64(password[4]);
88 data.iteration_count = password[5]; 88 data.iteration_count = tonumber(password[5]);
89 end 89 end
90 local ret, err = dm.store(node, host, "accounts", data); 90 local ret, err = dm.store(node, host, "accounts", data);
91 print("["..(err or "success").."] accounts: "..node.."@"..host); 91 print("["..(err or "success").."] accounts: "..node.."@"..host);
92 end 92 end
93 function roster(node, host, jid, item) 93 function roster(node, host, jid, item)