Diff

plugins/mod_auth_internal_hashed.lua @ 13213:50324f66ca2a

plugins: Use integer config API with interval specification where sensible Many of these fall into a few categories: - util.cache size, must be >= 1 - byte or item counts that logically can't be negative - port numbers that should be in 1..0xffff
author Kim Alvefur <zash@zash.se>
date Mon, 17 Jul 2023 01:38:54 +0200
parent 13202:173038306750
line wrap: on
line diff
--- a/plugins/mod_auth_internal_hashed.lua	Mon Jul 17 00:37:44 2023 +0200
+++ b/plugins/mod_auth_internal_hashed.lua	Mon Jul 17 01:38:54 2023 +0200
@@ -27,7 +27,7 @@
 local scram_name = "scram_"..hash_name:gsub("%-","_"):lower();
 
 -- Default; can be set per-user
-local default_iteration_count = module:get_option_number("default_iteration_count", 10000);
+local default_iteration_count = module:get_option_integer("default_iteration_count", 10000, 4096);
 
 local tokenauth = module:depends("tokenauth");