diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-30 01:20:13 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-30 01:20:13 +0100 |
commit | a8a1bb526ff592afc774de71b1781b21b17124b4 (patch) | |
tree | 82975f42f3a4fb51f43bf9283d3d315aa64a12c7 /plugins | |
parent | b56a39255a125794b8249719b39e1d40ca0a6804 (diff) | |
download | prosody-a8a1bb526ff592afc774de71b1781b21b17124b4.tar.gz prosody-a8a1bb526ff592afc774de71b1781b21b17124b4.zip |
mod_component: Allow unauthenticated components to authenticate (thanks Maranda)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_component.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index 09b0d2b3..738124cc 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -43,7 +43,7 @@ function module.add_host(module) local function handle_component_auth(event) local session, stanza = event.origin, event.stanza; - if session.type ~= "component" then return; end + if session.type ~= "component_unauthed" then return; end if (not session.host) or #stanza.tags > 0 then (session.log or log)("warn", "Invalid component handshake for host: %s", session.host); |