plugins/mod_legacyauth.lua

changeset 1690
b675ae5b4c91
parent 1689
5eb806590525
child 1833
f4c88dd32724
equal deleted inserted replaced
1689:5eb806590525 1690:b675ae5b4c91
51 if success then 51 if success then
52 local err_type, err_msg; 52 local err_type, err_msg;
53 success, err_type, err, err_msg = sessionmanager.bind_resource(session, resource); 53 success, err_type, err, err_msg = sessionmanager.bind_resource(session, resource);
54 if not success then 54 if not success then
55 session.send(st.error_reply(stanza, err_type, err, err_msg)); 55 session.send(st.error_reply(stanza, err_type, err, err_msg));
56 return true; 56 return true; -- FIXME need to unauthenticate here
57 end 57 end
58 end 58 end
59 session.send(st.reply(stanza)); 59 session.send(st.reply(stanza));
60 else 60 else
61 session.send(st.error_reply(stanza, "auth", "not-authorized")); 61 session.send(st.error_reply(stanza, "auth", "not-authorized"));

mercurial