diff options
author | Tobias Markmann <tm@ayena.de> | 2009-11-19 17:08:58 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2009-11-19 17:08:58 +0100 |
commit | 547b733736f76dac6fce0757ec73742377f5f99b (patch) | |
tree | 18ba93136b298a0adbf0b63b68674f8fda945276 /util/sasl/plain.lua | |
parent | c52c4021b0c8e890bb7334fdbf00b9550b17e21f (diff) | |
download | prosody-547b733736f76dac6fce0757ec73742377f5f99b.tar.gz prosody-547b733736f76dac6fce0757ec73742377f5f99b.zip |
Fail if username or password don't pass SASLprep.
Diffstat (limited to 'util/sasl/plain.lua')
-rw-r--r-- | util/sasl/plain.lua | 3 |
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; |