# HG changeset patch # User Tobias Markmann # Date 1227477367 -3600 # Node ID 62706c4e04cfa372bfabce4a1c98f15a52bc04d7 # Parent 4801dbeccc2a019a26168cf31f9801cd5516dc2c Some ends too much. diff -r 4801dbeccc2a -r 62706c4e04cf util/sasl.lua --- a/util/sasl.lua Sun Nov 23 21:26:06 2008 +0100 +++ b/util/sasl.lua Sun Nov 23 22:56:07 2008 +0100 @@ -28,7 +28,7 @@ local password_encoding, correct_password = self.password_handler(authentication, self.realm, "PLAIN") - if correct_password == nil then return "failure", "not-authorized" end + if correct_password == nil then return "failure", "not-authorized" elseif correct_password == false then return "failure", "account-disabled" end local claimed_password = "" @@ -126,7 +126,7 @@ --TODO maybe realm support self.username = response["username"] local password_encoding, Y = self.password_handler(response["username"], response["realm"], "DIGEST-MD5") - if Y == nil then return "failure", "not-authorized" end + if Y == nil then return "failure", "not-authorized" elseif Y == false then return "failure", "account-disabled" end local A1 = Y..":"..response["nonce"]..":"..response["cnonce"]--:authzid