diff options
author | Tobias Markmann <tm@ayena.de> | 2009-11-13 11:10:06 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2009-11-13 11:10:06 +0100 |
commit | f66117f6255fa37f0e049131ade72232251c32f1 (patch) | |
tree | 3261997350a93f7699b9d0eb51c4cd9897c1efc5 | |
parent | ed841d20a7881697a28a5497067df53f128348e3 (diff) | |
download | prosody-f66117f6255fa37f0e049131ade72232251c32f1.tar.gz prosody-f66117f6255fa37f0e049131ade72232251c32f1.zip |
Broken DIGEST-MD5 client support again.
-rw-r--r-- | util/sasl/digest-md5.lua | 4 |
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" |