aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-26 16:37:50 +0100
committerKim Alvefur <zash@zash.se>2021-12-26 16:37:50 +0100
commitc122d673e626a7f2a4596d9a2b12a15846406d5b (patch)
tree8fecc8c3b2d8e3a26501464b106ce2cf22d55e87 /plugins
parent28bd09951595e6bdff02a5b6b9ae59dc595cedcd (diff)
downloadprosody-c122d673e626a7f2a4596d9a2b12a15846406d5b.tar.gz
prosody-c122d673e626a7f2a4596d9a2b12a15846406d5b.zip
mod_auth_internal_hashed: Make SCRAM iteration count configurable
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_auth_internal_hashed.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua
index 37621d20..285ca118 100644
--- a/plugins/mod_auth_internal_hashed.lua
+++ b/plugins/mod_auth_internal_hashed.lua
@@ -28,7 +28,7 @@ local get_auth_db = assert(scram_hashers[hash_name], "SCRAM-"..hash_name.." not
local scram_name = "scram_"..hash_name:gsub("%-","_"):lower();
-- Default; can be set per-user
-local default_iteration_count = 4096;
+local default_iteration_count = module:get_option_number("default_iteration_count", 4096);
-- define auth provider
local provider = {};