From b1f22daa932ac857022412e734533ff05bad1594 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Tue, 22 Jan 2013 08:26:08 +0500 Subject: mod_auth_internal_plain, mod_auth_internal_hashed: No need to nodeprep here. --- plugins/mod_auth_internal_plain.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'plugins/mod_auth_internal_plain.lua') diff --git a/plugins/mod_auth_internal_plain.lua b/plugins/mod_auth_internal_plain.lua index 7514164d..178ae5a5 100644 --- a/plugins/mod_auth_internal_plain.lua +++ b/plugins/mod_auth_internal_plain.lua @@ -9,7 +9,6 @@ local datamanager = require "util.datamanager"; local usermanager = require "core.usermanager"; local new_sasl = require "util.sasl".new; -local nodeprep = require "util.encodings".stringprep.nodeprep; local log = module._log; local host = module.host; @@ -67,12 +66,7 @@ end function provider.get_sasl_handler() local getpass_authentication_profile = { plain = function(sasl, username, realm) - local prepped_username = nodeprep(username); - if not prepped_username then - log("debug", "NODEprep failed on username: %s", username); - return "", nil; - end - local password = usermanager.get_password(prepped_username, realm); + local password = usermanager.get_password(username, realm); if not password then return "", nil; end -- cgit v1.2.3