diff options
author | Kim Alvefur <zash@zash.se> | 2021-01-16 21:04:58 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-01-16 21:04:58 +0100 |
commit | a8b0c56f656fcd3fca033dc5f3154a4d8a2464a2 (patch) | |
tree | 622eea2bf7444475db1e24fbe0d6bc49d980654d /plugins/mod_auth_internal_hashed.lua | |
parent | c4abd68e92a258750177f25dca38525fe3133063 (diff) | |
download | prosody-a8b0c56f656fcd3fca033dc5f3154a4d8a2464a2.tar.gz prosody-a8b0c56f656fcd3fca033dc5f3154a4d8a2464a2.zip |
plugins: Use get_option_enum where appropriate
Diffstat (limited to 'plugins/mod_auth_internal_hashed.lua')
-rw-r--r-- | plugins/mod_auth_internal_hashed.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua index b8fea993..a0c4d48e 100644 --- a/plugins/mod_auth_internal_hashed.lua +++ b/plugins/mod_auth_internal_hashed.lua @@ -22,7 +22,7 @@ local host = module.host; 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(); |