Diff

plugins/mod_dialback.lua @ 4238:05f991b4a90e

Merge 0.8->trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 05 Apr 2011 13:26:43 +0100
parent 3651:337391d34b70
parent 4227:6b83ef6ec845
child 4264:fa36e749749c
line wrap: on
line diff
--- a/plugins/mod_dialback.lua	Fri Mar 18 10:33:38 2011 +0000
+++ b/plugins/mod_dialback.lua	Tue Apr 05 13:26:43 2011 +0100
@@ -12,7 +12,6 @@
 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 @@
 		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