Software /
code /
prosody
Comparison
util/sasl/plain.lua @ 2209:adbedc32d41b
Fail if username or password don't pass SASLprep.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Thu, 19 Nov 2009 17:08:58 +0100 |
parent | 2200:dd0b250cb6c4 |
child | 2210:78c9b5255b27 |
comparison
equal
deleted
inserted
replaced
2208:2dc746323de6 | 2209:adbedc32d41b |
---|---|
32 -- SASLprep password and authentication | 32 -- SASLprep password and authentication |
33 authentication = saslprep(authentication); | 33 authentication = saslprep(authentication); |
34 password = saslprep(password); | 34 password = saslprep(password); |
35 | 35 |
36 if (not password) or (password == "") or (not authentication) or (authentication == "") then | 36 if (not password) or (password == "") or (not authentication) or (authentication == "") then |
37 log("debug", "Username or password violates either SASLprep."); | 37 log("debug", "Username or password violates SASLprep."); |
38 return "failure", "malformed-request"; | |
38 end | 39 end |
39 | 40 |
40 local correct, state = false, false; | 41 local correct, state = false, false; |
41 if self.profile.plain then | 42 if self.profile.plain then |
42 local correct_password; | 43 local correct_password; |