Changeset

7785:cdffbda59b03

core.stanza_router: Remove hack for allowing resource binding IQ before resource binding
author Kim Alvefur <zash@zash.se>
date Tue, 13 Dec 2016 18:16:20 +0100
parents 7784:9f70d35a1602
children 7786:b62353e6a8e5 7787:200f1f6306a7
files core/stanza_router.lua
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/core/stanza_router.lua	Tue Dec 13 18:15:17 2016 +0100
+++ b/core/stanza_router.lua	Tue Dec 13 18:16:20 2016 +0100
@@ -79,16 +79,6 @@
 			end
 		end
 
-		if not origin.full_jid
-			and not(name == "iq" and st_type == "set" and stanza.tags[1] and stanza.tags[1].name == "bind"
-					and stanza.tags[1].attr.xmlns == "urn:ietf:params:xml:ns:xmpp-bind") then
-			-- authenticated client isn't bound and current stanza is not a bind request
-			if stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then
-				origin.send(st.error_reply(stanza, "auth", "not-authorized")); -- FIXME maybe allow stanzas to account or server
-			end
-			return;
-		end
-
 		-- TODO also, stanzas should be returned to their original state before the function ends
 		stanza.attr.from = origin.full_jid;
 	end