36 :tag("already-bound", { xmlns = "x-lxmppd:extensions:legacyauth" }); |
36 :tag("already-bound", { xmlns = "x-lxmppd:extensions:legacyauth" }); |
37 elseif err == "auth" then |
37 elseif err == "auth" then |
38 reply:tag("error", { code = "401", type = "auth" }) |
38 reply:tag("error", { code = "401", type = "auth" }) |
39 :tag("not-authorized", { xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas" }); |
39 :tag("not-authorized", { xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas" }); |
40 end |
40 end |
41 dispatch_stanza(reply); |
41 send(session, reply); |
42 return true; |
42 return true; |
43 end |
43 end |
44 end |
44 end |
45 send(session, st.reply(stanza)); |
45 send(session, st.reply(stanza)); |
46 return true; |
46 return true; |