aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-11-19 17:08:58 +0100
committerTobias Markmann <tm@ayena.de>2009-11-19 17:08:58 +0100
commit547b733736f76dac6fce0757ec73742377f5f99b (patch)
tree18ba93136b298a0adbf0b63b68674f8fda945276
parentc52c4021b0c8e890bb7334fdbf00b9550b17e21f (diff)
downloadprosody-547b733736f76dac6fce0757ec73742377f5f99b.tar.gz
prosody-547b733736f76dac6fce0757ec73742377f5f99b.zip
Fail if username or password don't pass SASLprep.
-rw-r--r--util/sasl/plain.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/sasl/plain.lua b/util/sasl/plain.lua
index d9fdb9a2..5c7ff68a 100644
--- a/util/sasl/plain.lua
+++ b/util/sasl/plain.lua
@@ -34,7 +34,8 @@ local function plain(self, message)
password = saslprep(password);
if (not password) or (password == "") or (not authentication) or (authentication == "") then
- log("debug", "Username or password violates either SASLprep.");
+ log("debug", "Username or password violates SASLprep.");
+ return "failure", "malformed-request";
end
local correct, state = false, false;