TLS/SASL no longer should include the connhandler module
[prosody.git] / plugins / mod_saslauth.lua
index 8ef1e09dba0f32832dfa2f8802044648b28d7433..24c82a1c99a0ba9ac732eba04c054a65868a68ed 100644 (file)
@@ -13,7 +13,6 @@ local xmlns_sasl ='urn:ietf:params:xml:ns:xmpp-sasl';
 local xmlns_bind ='urn:ietf:params:xml:ns:xmpp-bind';
 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
 
-local new_connhandler = require "net.connhandlers".new;
 local new_sasl = require "util.sasl".new;
 
 add_handler("c2s_unauthed", "auth", xmlns_sasl,
@@ -36,8 +35,7 @@ add_handler("c2s_unauthed", "auth", xmlns_sasl,
                                                        return;
                                                end
                                                session.sasl_handler = nil;
-                                               session.connhandler = new_connhandler("xmpp-client", session);
-                                               session.notopen = true;
+                                               session:reset_stream();
                                        end,
                                        function (reason)
                                                -- onFail