# HG changeset patch # User Matthew Wild # Date 1633601806 -3600 # Node ID 94534717ffcab95f1546662a277af8625fd3f8ad # Parent 5e9e75c277a29e8dc2d7b3f5515ad56c7833ac89 ejabberd2prosody: Convert SCRAM iteration count to number (thanks arcseconds) diff -r 5e9e75c277a2 -r 94534717ffca tools/ejabberd2prosody.lua --- a/tools/ejabberd2prosody.lua Wed Sep 22 16:16:30 2021 +0100 +++ b/tools/ejabberd2prosody.lua Thu Oct 07 11:16:46 2021 +0100 @@ -85,7 +85,7 @@ data.stored_key = hex(unb64(password[2])); data.server_key = hex(unb64(password[3])); data.salt = unb64(password[4]); - data.iteration_count = password[5]; + data.iteration_count = tonumber(password[5]); end local ret, err = dm.store(node, host, "accounts", data); print("["..(err or "success").."] accounts: "..node.."@"..host);