aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-03-25 19:16:38 +0100
committerKim Alvefur <zash@zash.se>2014-03-25 19:16:38 +0100
commit8c0d996be4f47b77a02668474d3d8a0a41bd0f98 (patch)
tree1dd9879238a7c2f688f02d2b61ed2877da2e9989 /plugins/mod_saslauth.lua
parent18f7ffec151b965af2745600f272db50a1c92ad2 (diff)
parente4ea0b094a43dd93fab253dff36efbe8aa3dc330 (diff)
downloadprosody-8c0d996be4f47b77a02668474d3d8a0a41bd0f98.tar.gz
prosody-8c0d996be4f47b77a02668474d3d8a0a41bd0f98.zip
Merge 0.9->0.10
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r--plugins/mod_saslauth.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 94c060b3..df60aefa 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -197,7 +197,7 @@ module:hook("stanza/urn:ietf:params:xml:ns:xmpp-sasl:auth", function(event)
return s2s_external_auth(session, stanza)
end
- if session.type ~= "c2s_unauthed" then return; end
+ if session.type ~= "c2s_unauthed" or module:get_host_type() ~= "local" then return; end
if session.sasl_handler and session.sasl_handler.selected then
session.sasl_handler = nil; -- allow starting a new SASL negotiation before completing an old one