aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-09-06 22:08:05 +0200
committerTobias Markmann <tm@ayena.de>2009-09-06 22:08:05 +0200
commit3818d632a94e41da909eb15f04859872be8d6b19 (patch)
treeba766e78e67ddb137fa0ce25dcc287bf0e21eb94
parent62ef87bb8fd695c0c63fd07b83dee477d7b365d6 (diff)
parent9be45d05d6ec13ec468e2fcbe5da1ef8791af141 (diff)
downloadprosody-3818d632a94e41da909eb15f04859872be8d6b19.tar.gz
prosody-3818d632a94e41da909eb15f04859872be8d6b19.zip
Automated merge with http://prosody.im/source/hg
-rw-r--r--plugins/mod_saslauth.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index da66717c..6051bf9d 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -84,7 +84,11 @@ local function credentials_callback(mechanism, ...)
elseif mechanism == "DIGEST-MD5" then
function func(x) return x; end
local node, domain, realm, decoder = ...;
- local password = usermanager_get_password(node, domain);
+ local prepped_node = nodeprep(node);
+ if not prepped_node then
+ return func, nil;
+ end
+ local password = usermanager_get_password(prepped_node, domain);
if password then
if decoder then
node, realm, password = decoder(node), decoder(realm), decoder(password);