mod_component: Allow unauthenticated components to authenticate (thanks Maranda)

2012-04-30

author
Matthew Wild <mwild1@gmail.com>
date
Mon Apr 30 01:20:13 2012 +0100
changeset 4806
27a99c289b90
parent 4805
1aeece2cc814
child 4807
2999f0fd1347
child 4809
3068ec951ffd

mod_component: Allow unauthenticated components to authenticate (thanks Maranda)

plugins/mod_component.lua file | annotate | diff | revisions
     1.1 --- a/plugins/mod_component.lua	Mon Apr 30 01:02:39 2012 +0100
     1.2 +++ b/plugins/mod_component.lua	Mon Apr 30 01:20:13 2012 +0100
     1.3 @@ -43,7 +43,7 @@
     1.4  	local function handle_component_auth(event)
     1.5  		local session, stanza = event.origin, event.stanza;
     1.6  		
     1.7 -		if session.type ~= "component" then return; end
     1.8 +		if session.type ~= "component_unauthed" then return; end
     1.9  	
    1.10  		if (not session.host) or #stanza.tags > 0 then
    1.11  			(session.log or log)("warn", "Invalid component handshake for host: %s", session.host);

mercurial