aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ejabberd2prosody.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2021-10-07 11:16:46 +0100
committerMatthew Wild <mwild1@gmail.com>2021-10-07 11:16:46 +0100
commit7925b95a586b5d347c091249c1b0f2d86d99be01 (patch)
treeb738512f4a0e42877d1d531e5f2eb64753cdbb45 /tools/ejabberd2prosody.lua
parenteda4a96f2f1d67405e30efd9d106f8651b8d372d (diff)
downloadprosody-7925b95a586b5d347c091249c1b0f2d86d99be01.tar.gz
prosody-7925b95a586b5d347c091249c1b0f2d86d99be01.zip
ejabberd2prosody: Convert SCRAM iteration count to number (thanks arcseconds)
Diffstat (limited to 'tools/ejabberd2prosody.lua')
-rwxr-xr-xtools/ejabberd2prosody.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ejabberd2prosody.lua b/tools/ejabberd2prosody.lua
index 46a48f57..6aef1ff2 100755
--- a/tools/ejabberd2prosody.lua
+++ b/tools/ejabberd2prosody.lua
@@ -85,7 +85,7 @@ function password(node, host, password)
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);