aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-11-07 17:49:34 +0100
committerKim Alvefur <zash@zash.se>2018-11-07 17:49:34 +0100
commitce9eed3c88c9ec76e559dedb1ce101eff5433099 (patch)
tree5c2b5dc00de4f182d17ab42fa5675cad3248e70b
parentbab787b0ec0e5fc7dbb2f3f5ff59187af5c56f31 (diff)
downloadprosody-ce9eed3c88c9ec76e559dedb1ce101eff5433099.tar.gz
prosody-ce9eed3c88c9ec76e559dedb1ce101eff5433099.zip
mod_register: Move dependency on mod_register_limits into mod_register_ibr
-rw-r--r--plugins/mod_register.lua1
-rw-r--r--plugins/mod_register_ibr.lua4
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua
index 49ff8a38..763e2fd9 100644
--- a/plugins/mod_register.lua
+++ b/plugins/mod_register.lua
@@ -11,7 +11,6 @@ local allow_registration = module:get_option_boolean("allow_registration", false
if allow_registration then
module:depends("register_ibr");
- module:depends("register_limits");
end
module:depends("user_account_management");
diff --git a/plugins/mod_register_ibr.lua b/plugins/mod_register_ibr.lua
index abfc1079..bbe7581d 100644
--- a/plugins/mod_register_ibr.lua
+++ b/plugins/mod_register_ibr.lua
@@ -18,6 +18,10 @@ local additional_fields = module:get_option("additional_registration_fields", {}
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 = {