util/sasl/plain.lua

changeset 2205
adbedc32d41b
parent 2196
dd0b250cb6c4
child 2206
78c9b5255b27
equal deleted inserted replaced
2204:2dc746323de6 2205: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;

mercurial