Software /
code /
prosody
Comparison
plugins/mod_saslauth.lua @ 8042:5d5afaafac0f
mod_saslauth: Remove unused argument [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 01 Apr 2017 22:34:15 +0200 |
parent | 7962:4e9b307c30dd |
child | 8234:97b3ca502547 |
comparison
equal
deleted
inserted
replaced
8041:3b2cc22e9b5b | 8042:5d5afaafac0f |
---|---|
80 log("debug", "sasl reply: %s", tostring(s)); | 80 log("debug", "sasl reply: %s", tostring(s)); |
81 session.send(s); | 81 session.send(s); |
82 return true; | 82 return true; |
83 end | 83 end |
84 | 84 |
85 module:hook_tag(xmlns_sasl, "success", function (session, stanza) | 85 module:hook_tag(xmlns_sasl, "success", function (session) |
86 if session.type ~= "s2sout_unauthed" or session.external_auth ~= "attempting" then return; end | 86 if session.type ~= "s2sout_unauthed" or session.external_auth ~= "attempting" then return; end |
87 module:log("debug", "SASL EXTERNAL with %s succeeded", session.to_host); | 87 module:log("debug", "SASL EXTERNAL with %s succeeded", session.to_host); |
88 session.external_auth = "succeeded" | 88 session.external_auth = "succeeded" |
89 session:reset_stream(); | 89 session:reset_stream(); |
90 session:open_stream(session.from_host, session.to_host); | 90 session:open_stream(session.from_host, session.to_host); |