Software /
code /
prosody
Comparison
plugins/mod_saslauth.lua @ 52:93e468eb2ffb
Fix for destruction of unauthed SASL sessions
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 04 Oct 2008 15:24:52 +0100 |
parent | 48:d0505310aec5 |
child | 99:ba08b8a4eeef |
comparison
equal
deleted
inserted
replaced
50:56272224ca4c | 52:93e468eb2ffb |
---|---|
31 function (username) | 31 function (username) |
32 -- onSuccess | 32 -- onSuccess |
33 local success, err = sessionmanager.make_authenticated(session, username); | 33 local success, err = sessionmanager.make_authenticated(session, username); |
34 if not success then | 34 if not success then |
35 sessionmanager.destroy_session(session); | 35 sessionmanager.destroy_session(session); |
36 return; | |
36 end | 37 end |
37 session.sasl_handler = nil; | 38 session.sasl_handler = nil; |
38 session.connhandler = new_connhandler("xmpp-client", session); | 39 session.connhandler = new_connhandler("xmpp-client", session); |
39 session.notopen = true; | 40 session.notopen = true; |
40 end, | 41 end, |