Comparison

plugins/mod_saslauth.lua @ 8512:e924a99fd435

mod_saslauth: Use renamed API for hooking non-stanzas
author Kim Alvefur <zash@zash.se>
date Sun, 04 Feb 2018 01:03:44 +0100
parent 8511:dd7b8888636e
child 8513:c6be9bbd0a1a
comparison
equal deleted inserted replaced
8511:dd7b8888636e 8512:e924a99fd435
111 111
112 session.external_auth = "failed" 112 session.external_auth = "failed"
113 session.external_auth_failure_reason = condition; 113 session.external_auth_failure_reason = condition;
114 end, 500) 114 end, 500)
115 115
116 module:hook_stanza(xmlns_sasl, "failure", function (session, stanza) 116 module:hook_tag(xmlns_sasl, "failure", function (session, stanza)
117 session.log("debug", "No fallback from SASL EXTERNAL failure, giving up"); 117 session.log("debug", "No fallback from SASL EXTERNAL failure, giving up");
118 session:close(nil, session.external_auth_failure_reason); 118 session:close(nil, session.external_auth_failure_reason);
119 return true; 119 return true;
120 end, 90) 120 end, 90)
121 121