mod_auth_custom_http: No need for nodeprep in Prosody 0.9.
authorWaqas Hussain <waqas20@gmail.com>
Mon, 03 Jun 2013 07:57:12 -0400
changeset 1045 76668bb122c2
parent 1044 fcb9bf7ac107
child 1046 b9d47487d550
mod_auth_custom_http: No need for nodeprep in Prosody 0.9.
mod_auth_custom_http/mod_auth_custom_http.lua
--- a/mod_auth_custom_http/mod_auth_custom_http.lua	Mon Jun 03 07:53:48 2013 -0400
+++ b/mod_auth_custom_http/mod_auth_custom_http.lua	Mon Jun 03 07:57:12 2013 -0400
@@ -38,11 +38,6 @@
 function provider.get_sasl_handler()
 	local getpass_authentication_profile = {
 		plain_test = function(sasl, username, password, realm)
-			local prepped_username = nodeprep(username);
-			if not prepped_username then
-				log("debug", "NODEprep failed on username: %s", username);
-				return "", nil;
-			end
 			local postdata = require "util.json".encode({ username = username, password = password });
 			local result = require "socket.http".request("http://example.com/path", postdata);
 			return result == "true", true;