aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-07-05 18:59:46 +0200
committerTobias Markmann <tm@ayena.de>2009-07-05 18:59:46 +0200
commitf80cf5ff5954613e579cb9079927cb3bd0038853 (patch)
tree72234e732b3aab488d7a4bc1117268f2e5091594
parentea7181e5b2bf2a34e9af9919fb34e448ea9cf1af (diff)
downloadprosody-f80cf5ff5954613e579cb9079927cb3bd0038853.tar.gz
prosody-f80cf5ff5954613e579cb9079927cb3bd0038853.zip
Fixed decoding of parameters.
-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 754c82b3..8093728e 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -72,7 +72,7 @@ local function password_callback(node, hostname, realm, mechanism, decoder)
if mechanism == "PLAIN" then
return func, password;
elseif mechanism == "DIGEST-MD5" then
- if decoder then node, hostname, password = decoder(node), decoder(hostname), decoder(password); end
+ if decoder then node, realm, password = decoder(node), decoder(realm), decoder(password); end
return func, md5(node..":"..realm..":"..password);
end
end