Software /
code /
prosody
Changeset
13225:6375f0741f90
mod_storage_xep0227: Use enum option method
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 18 Jul 2023 12:32:05 +0200 |
parents | 13224:71c28b36923f |
children | 13226:ac44bb7b7064 |
files | plugins/mod_storage_xep0227.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_xep0227.lua Tue Jul 18 12:31:29 2023 +0200 +++ b/plugins/mod_storage_xep0227.lua Tue Jul 18 12:32:05 2023 +0200 @@ -80,7 +80,7 @@ -- In order to support custom account properties local extended = "http://prosody.im/protocol/extended-xep0227\1"; -local scram_hash_name = module:get_option_string("password_hash", "SHA-1"); +local scram_hash_name = module:get_option_enum("password_hash", "SHA-1", "SHA-256"); local scram_properties = set.new({ "server_key", "stored_key", "iteration_count", "salt" }); handlers.accounts = {