aboutsummaryrefslogtreecommitdiffstats
path: root/core/usermanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-11 08:36:31 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-11 08:36:31 +0500
commit20a0a7eb7c34b1247a341995ebefe03f90ae2af7 (patch)
tree1c36e3139dfb59189ccb143114448067ce6f8a07 /core/usermanager.lua
parente982b671520277be7717108520c77ced0d5b31c1 (diff)
downloadprosody-20a0a7eb7c34b1247a341995ebefe03f90ae2af7.tar.gz
prosody-20a0a7eb7c34b1247a341995ebefe03f90ae2af7.zip
usermanager: Don't load auth modules for components.
Diffstat (limited to 'core/usermanager.lua')
-rw-r--r--core/usermanager.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index 83de193f..47a66b3a 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -34,6 +34,8 @@ end
function initialize_host(host)
local host_session = hosts[host];
+ if host_session.type ~= "local" then return; end
+
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;