aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-13 04:07:38 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-13 04:07:38 +0500
commit8fcc2761e665bfbb50dd8a48a6de7e8f894964a8 (patch)
tree70e05936c06481e788cec51501a043c9b8048417
parent87299a523d8d61e7fb838b2e377d3a0beb5b434a (diff)
downloadprosody-8fcc2761e665bfbb50dd8a48a6de7e8f894964a8.tar.gz
prosody-8fcc2761e665bfbb50dd8a48a6de7e8f894964a8.zip
mod_auth_internal_hashed: Fixed a traceback in account creation.
-rw-r--r--plugins/mod_auth_internal_hashed.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua
index 3e5cb17a..ecf354c9 100644
--- a/plugins/mod_auth_internal_hashed.lua
+++ b/plugins/mod_auth_internal_hashed.lua
@@ -115,7 +115,7 @@ function new_hashpass_provider(host)
function provider.create_user(username, password)
if is_cyrus(host) then return nil, "Account creation/modification not available with Cyrus SASL."; end
local salt = generate_uuid();
- local valid, stored_key, server_key = saltedPasswordSHA1(password, salt, iteration_count);
+ local valid, stored_key, server_key = getAuthenticationDatabaseSHA1(password, salt, iteration_count);
local stored_key_hex = stored_key:gsub(".", function (c) return ("%02x"):format(c:byte()); end);
local server_key_hex = server_key:gsub(".", function (c) return ("%02x"):format(c:byte()); end);
return datamanager.store(username, host, "accounts", {stored_key = stored_key_hex, server_key = server_key_hex, salt = salt, iteration_count = iteration_count});