--- a/plugins/mod_auth_internal_hashed.lua Sat Jan 16 20:40:14 2021 +0100
+++ b/plugins/mod_auth_internal_hashed.lua Sat Jan 16 21:04:58 2021 +0100
@@ -22,7 +22,7 @@
local accounts = module:open_store("accounts");
-local hash_name = module:get_option_string("password_hash", "SHA-1");
+local hash_name = module:get_option_enum("password_hash", "SHA-1", "SHA-256");
local get_auth_db = assert(scram_hashers[hash_name], "SCRAM-"..hash_name.." not supported by SASL library");
local scram_name = "scram_"..hash_name:gsub("%-","_"):lower();