aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl
diff options
context:
space:
mode:
Diffstat (limited to 'util/sasl')
-rw-r--r--util/sasl/plain.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/sasl/plain.lua b/util/sasl/plain.lua
index fb20cf97..ba4645e1 100644
--- a/util/sasl/plain.lua
+++ b/util/sasl/plain.lua
@@ -64,8 +64,10 @@ local function plain(self, message)
end
self.username = authentication
- if not state then
+ if state == false then
return "failure", "account-disabled";
+ elseif state == nil then
+ return "failure", "not-authorized", "Unable to authorize you with the authentication credentials you've sent.";
end
if correct then