From 5eef82fdcfe3163b1d23b04058dc41b7848b7976 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 3 Sep 2022 21:19:00 +0100 Subject: mod_saslauth: Only announce bind feature if no resource yet bound It's now possible to bind during SASL2 negotiation. --- plugins/mod_saslauth.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index c7228b10..2552a253 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -352,7 +352,7 @@ module:hook("stream-features", function(event) authmod, available_disabled); end - else + elseif not session.full_jid then features:tag("bind", bind_attr):tag("required"):up():up(); features:tag("session", xmpp_session_attr):tag("optional"):up():up(); end -- cgit v1.2.3