mod_auth_internal_hashed: Make SCRAM iteration count configurable
authorKim Alvefur <zash@zash.se>
Sun, 26 Dec 2021 16:37:50 +0100
changeset 12131 baa7cdde69a6
parent 12130 0d8e6646ce42
child 12132 593e823566e1
mod_auth_internal_hashed: Make SCRAM iteration count configurable
plugins/mod_auth_internal_hashed.lua
--- a/plugins/mod_auth_internal_hashed.lua	Mon Dec 27 17:04:33 2021 +0100
+++ b/plugins/mod_auth_internal_hashed.lua	Sun Dec 26 16:37:50 2021 +0100
@@ -28,7 +28,7 @@
 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 = {};