# HG changeset patch
# User Waqas Hussain <waqas20@gmail.com>
# Date 1370260632 14400
# Node ID 76668bb122c2a252b44c0cf787c6db7d6c97959b
# Parent  fcb9bf7ac107ae2c326d28fb46323c10101aacc0
mod_auth_custom_http: No need for nodeprep in Prosody 0.9.

diff -r fcb9bf7ac107 -r 76668bb122c2 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;