diff options
author | Kim Alvefur <zash@zash.se> | 2022-04-08 15:09:19 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-04-08 15:09:19 +0200 |
commit | e626855282e5b813e31c080f4e386975f3841901 (patch) | |
tree | dbb1d4052909f9ac637289ca64c8db2ca573ce61 /plugins/mod_storage_xep0227.lua | |
parent | fc6f400997a5dbfe4157cfa512263fe201f072c3 (diff) | |
download | prosody-e626855282e5b813e31c080f4e386975f3841901.tar.gz prosody-e626855282e5b813e31c080f4e386975f3841901.zip |
mod_storage_xep0227: Fix conversion of SCRAM into internal format (fix #1741)
Looks like this function was a copy of hex_to_base64 without modifying
it to do its inverse.
Diffstat (limited to 'plugins/mod_storage_xep0227.lua')
-rw-r--r-- | plugins/mod_storage_xep0227.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_xep0227.lua b/plugins/mod_storage_xep0227.lua index 5b4d3f1a..285428d6 100644 --- a/plugins/mod_storage_xep0227.lua +++ b/plugins/mod_storage_xep0227.lua @@ -72,7 +72,7 @@ local function hex_to_base64(s) end local function base64_to_hex(s) - return base64.encode(hex.decode(s)); + return hex.encode(base64.decode(s)); end local handlers = {}; |