Software /
code /
prosody
Changeset
9608:3e44b8dc2cc0 0.11
mod_register: Move dependency on mod_register_limits into mod_register_ibr
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 07 Nov 2018 17:49:34 +0100 |
parents | 9605:07e3b8e60a6c |
children | 9609:1dfcea523200 |
files | plugins/mod_register.lua plugins/mod_register_ibr.lua |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_register.lua Wed Oct 31 14:18:36 2018 +0000 +++ b/plugins/mod_register.lua Wed Nov 07 17:49:34 2018 +0100 @@ -11,7 +11,6 @@ if allow_registration then module:depends("register_ibr"); - module:depends("register_limits"); end module:depends("user_account_management");
--- a/plugins/mod_register_ibr.lua Wed Oct 31 14:18:36 2018 +0000 +++ b/plugins/mod_register_ibr.lua Wed Nov 07 17:49:34 2018 +0100 @@ -18,6 +18,10 @@ local require_encryption = module:get_option_boolean("c2s_require_encryption", module:get_option_boolean("require_encryption", false)); +pcall(function () + module:depends("register_limits"); +end); + local account_details = module:open_store("account_details"); local field_map = {