Software /
code /
prosody
Diff
plugins/mod_auth_internal_hashed.lua @ 13202:173038306750
plugins: Use get_option_enum where appropriate
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 16 Jan 2021 21:04:58 +0100 |
parent | 12977:74b9e05af71e |
child | 13213:50324f66ca2a |
line wrap: on
line diff
--- 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();