comparison mod_rest/mod_rest.lua @ 3887:3d0e8e32453c

mod_rest: Remove no longer needed logging I wasn't sure that curl et all passed the correct password, so the length was included.
author Kim Alvefur <zash@zash.se>
date Fri, 07 Feb 2020 20:57:47 +0100
parents 3b31ff7b4c7c
children eb27e51cf2c9
comparison
equal deleted inserted replaced
3886:b64b08b7bf8e 3887:3d0e8e32453c
35 if not creds then return false; end 35 if not creds then return false; end
36 local username, password = string.match(creds, "^([^:]+):(.*)$"); 36 local username, password = string.match(creds, "^([^:]+):(.*)$");
37 if not username then return false; end 37 if not username then return false; end
38 username, password = encodings.stringprep.nodeprep(username), encodings.stringprep.saslprep(password); 38 username, password = encodings.stringprep.nodeprep(username), encodings.stringprep.saslprep(password);
39 if not username then return false; end 39 if not username then return false; end
40 module:log("debug", "usermanager.test_password(%q, %q, %q)", username, module.host, string.rep("*", #password))
41 if not um.test_password(username, module.host, password) then 40 if not um.test_password(username, module.host, password) then
42 return false; 41 return false;
43 end 42 end
44 return jid.join(username, module.host); 43 return jid.join(username, module.host);
45 end 44 end