Software /
code /
prosody
Comparison
plugins/mod_dialback.lua @ 645:d0a8ff9ba3e0
Destroy session on failed dialback instead of throwing an error
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 25 Dec 2008 02:30:56 +0000 |
parent | 621:cd2cab5400fc |
child | 758:b1885732e979 |
comparison
equal
deleted
inserted
replaced
644:e1b3a472ca00 | 645:d0a8ff9ba3e0 |
---|---|
20 | 20 |
21 | 21 |
22 local send_s2s = require "core.s2smanager".send_to_host; | 22 local send_s2s = require "core.s2smanager".send_to_host; |
23 local s2s_make_authenticated = require "core.s2smanager".make_authenticated; | 23 local s2s_make_authenticated = require "core.s2smanager".make_authenticated; |
24 local s2s_verify_dialback = require "core.s2smanager".verify_dialback; | 24 local s2s_verify_dialback = require "core.s2smanager".verify_dialback; |
25 local s2s_destroy_session = require "core.s2smanager".destroy_session; | |
25 | 26 |
26 local st = require "util.stanza"; | 27 local st = require "util.stanza"; |
27 | 28 |
28 local log = require "util.logger".init("mod_dialback"); | 29 local log = require "util.logger".init("mod_dialback"); |
29 | 30 |
118 return; | 119 return; |
119 end | 120 end |
120 if stanza.attr.type == "valid" then | 121 if stanza.attr.type == "valid" then |
121 s2s_make_authenticated(origin, attr.from); | 122 s2s_make_authenticated(origin, attr.from); |
122 else | 123 else |
123 -- FIXME: Waiting on #33 | 124 s2s_destroy_session(origin) |
124 error("dialback failed!"); | |
125 end | 125 end |
126 end); | 126 end); |