diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-11-11 08:36:31 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-11-11 08:36:31 +0500 |
commit | 20a0a7eb7c34b1247a341995ebefe03f90ae2af7 (patch) | |
tree | 1c36e3139dfb59189ccb143114448067ce6f8a07 /core/usermanager.lua | |
parent | e982b671520277be7717108520c77ced0d5b31c1 (diff) | |
download | prosody-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.lua | 2 |
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; |