Software /
code /
prosody
Comparison
plugins/mod_auth_internal_hashed.lua @ 3187:a475fbce1990
mod_auth_internal, mod_auth_internal_hashed: Fixed a global access.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 07 Jun 2010 02:38:20 +0500 |
parent | 3186:b5f261123013 |
child | 3189:d686abb6b069 |
comparison
equal
deleted
inserted
replaced
3186:b5f261123013 | 3187:a475fbce1990 |
---|---|
106 local hexpass = binpass:gsub(".", function (c) return ("%02x"):format(c:byte()); end); | 106 local hexpass = binpass:gsub(".", function (c) return ("%02x"):format(c:byte()); end); |
107 return datamanager.store(username, host, "accounts", {hashpass = hexpass, salt = salt, iteration_count = iteration_count}); | 107 return datamanager.store(username, host, "accounts", {hashpass = hexpass, salt = salt, iteration_count = iteration_count}); |
108 end | 108 end |
109 | 109 |
110 function provider.get_sasl_handler() | 110 function provider.get_sasl_handler() |
111 local realm = module:get_option("sasl_realm") or origin.host; | 111 local realm = module:get_option("sasl_realm") or module.host; |
112 local testpass_authentication_profile = { | 112 local testpass_authentication_profile = { |
113 plain_test = function(username, password, realm) | 113 plain_test = function(username, password, realm) |
114 local prepped_username = nodeprep(username); | 114 local prepped_username = nodeprep(username); |
115 if not prepped_username then | 115 if not prepped_username then |
116 log("debug", "NODEprep failed on username: %s", username); | 116 log("debug", "NODEprep failed on username: %s", username); |