aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl/digest-md5.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/sasl/digest-md5.lua')
-rw-r--r--util/sasl/digest-md5.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/sasl/digest-md5.lua b/util/sasl/digest-md5.lua
index df0a5b47..3f50e232 100644
--- a/util/sasl/digest-md5.lua
+++ b/util/sasl/digest-md5.lua
@@ -175,7 +175,9 @@ local function digest(self, message)
elseif state == false then return "failure", "account-disabled" end
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"])
+ local Y, state = self.profile["digest-md5"](response["username"], self.realm, response["realm"] response["charset"])
+ if state == nil then return "failure", "not-authorized"
+ elseif state == false then return "failure", "account-disabled" end
elseif self.profile["digest-md5-test"] then
-- TODO
end