Software / code / prosody
Comparison
plugins/mod_legacyauth.lua @ 154:1fee9396ca2f
Fix mod_legacyauth to not use old stanza_dispatch
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 24 Oct 2008 14:45:50 +0100 |
| parent | 45:363c0af290bc |
| child | 304:7b28fa8bbfe5 |
comparison
equal
deleted
inserted
replaced
| 153:8310bfddaba8 | 154:1fee9396ca2f |
|---|---|
| 47 else | 47 else |
| 48 local reply = st.reply(stanza); | 48 local reply = st.reply(stanza); |
| 49 reply.attr.type = "error"; | 49 reply.attr.type = "error"; |
| 50 reply:tag("error", { code = "401", type = "auth" }) | 50 reply:tag("error", { code = "401", type = "auth" }) |
| 51 :tag("not-authorized", { xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas" }); | 51 :tag("not-authorized", { xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas" }); |
| 52 dispatch_stanza(reply); | 52 send(session, reply); |
| 53 return true; | 53 return true; |
| 54 end | 54 end |
| 55 end | 55 end |
| 56 | 56 |
| 57 end); | 57 end); |