Software /
code /
prosody-modules
Diff
mod_auth_sql/mod_auth_sql.lua @ 902:490cb9161c81
mod_auth_{external,internal_yubikey,ldap,ldap2,sql}: No need to nodeprep in SASL handler.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 26 Jan 2013 04:34:05 +0500 |
parent | 843:cdc67f4efde2 |
child | 1343:7dbde05b48a9 |
line wrap: on
line diff
--- a/mod_auth_sql/mod_auth_sql.lua Sat Jan 26 00:15:24 2013 +0100 +++ b/mod_auth_sql/mod_auth_sql.lua Sat Jan 26 04:34:05 2013 +0500 @@ -5,7 +5,6 @@ local log = require "util.logger".init("auth_sql"); local new_sasl = require "util.sasl".new; -local nodeprep = require "util.encodings".stringprep.nodeprep; local DBI = require "DBI" local connection; @@ -101,12 +100,7 @@ function provider.get_sasl_handler() local profile = { plain = function(sasl, username, realm) - local prepped_username = nodeprep(username); - if not prepped_username then - module:log("debug", "NODEprep failed on username: %s", username); - return "", nil; - end - local password = get_password(prepped_username); + local password = get_password(username); if not password then return "", nil; end return password, true; end