Software /
code /
prosody
Changeset
3243:dc7131d4e189
mod_auth_internal_hashed: Fixed a traceback in account creation.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 13 Jun 2010 04:07:38 +0500 |
parents | 3242:43f9478d8119 |
children | 3244:616a3bb2bad9 |
files | plugins/mod_auth_internal_hashed.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_auth_internal_hashed.lua Sat Jun 12 02:47:53 2010 +0100 +++ b/plugins/mod_auth_internal_hashed.lua Sun Jun 13 04:07:38 2010 +0500 @@ -115,7 +115,7 @@ 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});