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; |