aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-28 14:35:52 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-28 14:35:52 +0100
commit2b144a94d1c0da5ab932497cad20e23996bdafc9 (patch)
tree4e5a9d05c20122a5e82343556e311cc238ca05df /core
parent3359d1e028dcc5f22a25d2117fcd1fa108923194 (diff)
downloadprosody-2b144a94d1c0da5ab932497cad20e23996bdafc9.tar.gz
prosody-2b144a94d1c0da5ab932497cad20e23996bdafc9.zip
usermanager: Add log error for use of COMPAT config option 'anonymous_login'. To be removed in next version.
Diffstat (limited to 'core')
-rw-r--r--core/usermanager.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index 9e5a016c..50aee701 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -41,7 +41,10 @@ function initialize_host(host)
host_session.events.add_handler("item-added/auth-provider", function (event)
local provider = event.item;
local auth_provider = config.get(host, "core", "authentication") or default_provider;
- if config.get(host, "core", "anonymous_login") then auth_provider = "anonymous"; end -- COMPAT 0.7
+ if config.get(host, "core", "anonymous_login") then
+ log("error", "Deprecated config option 'anonymous_login'. Use authentication = 'anonymous' instead.");
+ auth_provider = "anonymous";
+ end -- COMPAT 0.7
if provider.name == auth_provider then
host_session.users = setmetatable(provider, provider_mt);
end