Mercurial > prosody-modules
diff mod_auth_sql/mod_auth_sql.lua @ 927:a9dfa7232d88
Merge
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 12 Mar 2013 12:10:25 +0000 |
| parents | 490cb9161c81 |
| children | 7dbde05b48a9 |
line wrap: on
line diff
--- a/mod_auth_sql/mod_auth_sql.lua Thu Nov 22 18:59:10 2012 +0000 +++ b/mod_auth_sql/mod_auth_sql.lua Tue Mar 12 12:10:25 2013 +0000 @@ -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
