diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-09-07 23:28:25 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-09-07 23:28:25 +0500 |
commit | 43e737882ab92c2858f9f46f2e4e4a9b61d13d11 (patch) | |
tree | 6cae9cdb8896c9c45281274ef755bc41af7ed2c8 /plugins | |
parent | 3eab032d300fcdabac5c77389cab413d38831c97 (diff) | |
parent | 3818d632a94e41da909eb15f04859872be8d6b19 (diff) | |
download | prosody-43e737882ab92c2858f9f46f2e4e4a9b61d13d11.tar.gz prosody-43e737882ab92c2858f9f46f2e4e4a9b61d13d11.zip |
Merged with Tobias
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_saslauth.lua | 6 |
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); |