Software /
code /
prosody
Comparison
plugins/mod_saslauth.lua @ 99:ba08b8a4eeef
Abstract connections with "connection listeners"
- Added connlistener for xmppclient
- SASL/TLS now use a new session:reset_stream() method
- main.lua on its way to being a bit neater
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 22 Oct 2008 17:36:21 +0100 |
parent | 52:93e468eb2ffb |
child | 120:ef964468f174 |
comparison
equal
deleted
inserted
replaced
98:3a2d327c4856 | 99:ba08b8a4eeef |
---|---|
34 if not success then | 34 if not success then |
35 sessionmanager.destroy_session(session); | 35 sessionmanager.destroy_session(session); |
36 return; | 36 return; |
37 end | 37 end |
38 session.sasl_handler = nil; | 38 session.sasl_handler = nil; |
39 session.connhandler = new_connhandler("xmpp-client", session); | 39 session:reset_stream(); |
40 session.notopen = true; | |
41 end, | 40 end, |
42 function (reason) | 41 function (reason) |
43 -- onFail | 42 -- onFail |
44 log("debug", "SASL failure, reason: %s", reason); | 43 log("debug", "SASL failure, reason: %s", reason); |
45 end, | 44 end, |