From 7b32c69b433f22b101e9bd958a60faf119e2a9e9 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 18 Jul 2023 12:32:05 +0200 Subject: mod_storage_xep0227: Use enum option method --- plugins/mod_storage_xep0227.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_storage_xep0227.lua b/plugins/mod_storage_xep0227.lua index af61031f..5b324885 100644 --- a/plugins/mod_storage_xep0227.lua +++ b/plugins/mod_storage_xep0227.lua @@ -80,7 +80,7 @@ local handlers = {}; -- In order to support custom account properties local extended = "http://prosody.im/protocol/extended-xep0227\1"; -local scram_hash_name = module:get_option_string("password_hash", "SHA-1"); +local scram_hash_name = module:get_option_enum("password_hash", "SHA-1", "SHA-256"); local scram_properties = set.new({ "server_key", "stored_key", "iteration_count", "salt" }); handlers.accounts = { -- cgit v1.2.3