aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-03-21 19:32:51 +0000
committerMatthew Wild <mwild1@gmail.com>2011-03-21 19:32:51 +0000
commit67e210a28a89dd605bc50ceaeef37958268f8fed (patch)
treeea13960547b81446a65aadd666e8f6e9192d62b2 /plugins
parentceffa60caf80a654620c0d78d5d9cec76d305a0b (diff)
downloadprosody-67e210a28a89dd605bc50ceaeef37958268f8fed.tar.gz
prosody-67e210a28a89dd605bc50ceaeef37958268f8fed.zip
mod_dialback: Use session:close() on dialback failure instead of s2smanager.destroy_session() (thanks Zash)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_dialback.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua
index e1fd5a42..8c80dce6 100644
--- a/plugins/mod_dialback.lua
+++ b/plugins/mod_dialback.lua
@@ -12,7 +12,6 @@ local send_s2s = require "core.s2smanager".send_to_host;
local s2s_make_authenticated = require "core.s2smanager".make_authenticated;
local s2s_initiate_dialback = require "core.s2smanager".initiate_dialback;
local s2s_verify_dialback = require "core.s2smanager".verify_dialback;
-local s2s_destroy_session = require "core.s2smanager".destroy_session;
local log = module._log;
@@ -126,7 +125,7 @@ module:hook("stanza/jabber:server:dialback:result", function(event)
if stanza.attr.type == "valid" then
s2s_make_authenticated(origin, attr.from);
else
- s2s_destroy_session(origin)
+ origin:close("not-authorized", "dialback authentication failed");
end
return true;
end