diff options
author | Kim Alvefur <zash@zash.se> | 2017-03-06 15:56:12 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-03-06 15:56:12 +0100 |
commit | 7e3a83a35b66db9a88dac62079b71331630cefa9 (patch) | |
tree | e551e3f952246557481c9ef13313beed82344462 /plugins | |
parent | b1b108de84bd474d97bbc9931e071969fbd65d17 (diff) | |
download | prosody-7e3a83a35b66db9a88dac62079b71331630cefa9.tar.gz prosody-7e3a83a35b66db9a88dac62079b71331630cefa9.zip |
mod_saslauth: Switch to hook_tag from hook_stanza which was renamed in 2087d42f1e77
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_saslauth.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index ee468c17..b3a3aaa9 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -82,7 +82,7 @@ local function sasl_process_cdata(session, stanza) return true; end -module:hook_stanza(xmlns_sasl, "success", function (session, stanza) +module:hook_tag(xmlns_sasl, "success", function (session, stanza) if session.type ~= "s2sout_unauthed" or session.external_auth ~= "attempting" then return; end module:log("debug", "SASL EXTERNAL with %s succeeded", session.to_host); session.external_auth = "succeeded" @@ -93,7 +93,7 @@ module:hook_stanza(xmlns_sasl, "success", function (session, stanza) return true; end) -module:hook_stanza(xmlns_sasl, "failure", function (session, stanza) +module:hook_tag(xmlns_sasl, "failure", function (session, stanza) if session.type ~= "s2sout_unauthed" or session.external_auth ~= "attempting" then return; end local text = stanza:get_child_text("text"); @@ -114,7 +114,7 @@ module:hook_stanza(xmlns_sasl, "failure", function (session, stanza) return true; end, 500) -module:hook_stanza("http://etherx.jabber.org/streams", "features", function (session, stanza) +module:hook_tag("http://etherx.jabber.org/streams", "features", function (session, stanza) if session.type ~= "s2sout_unauthed" or not session.secure then return; end local mechanisms = stanza:get_child("mechanisms", xmlns_sasl) |