aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/sasl/digest-md5.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl/digest-md5.lua b/util/sasl/digest-md5.lua
index 1ff0f62b..df0a5b47 100644
--- a/util/sasl/digest-md5.lua
+++ b/util/sasl/digest-md5.lua
@@ -173,11 +173,11 @@ local function digest(self, message)
local password, state = self.profile.plain(response["username"], self.realm)
if state == nil then return "failure", "not-authorized"
elseif state == false then return "failure", "account-disabled" end
- Y = md5(response["username"]..":"..self.realm..":"..password);
+ Y = md5(response["username"]..":"..response["realm"]..":"..password);
elseif self.profile["digest-md5"] then
--local Y, state = self.profile["digest-md5"](response["username"], self.realm, response["charset"])
elseif self.profile["digest-md5-test"] then
-
+ -- TODO
end
--local password_encoding, Y = self.credentials_handler("DIGEST-MD5", response["username"], self.realm, response["realm"], decoder);
--if Y == nil then return "failure", "not-authorized"