aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_auth_internal_hashed.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2010-08-16 18:51:22 +0200
committerKim Alvefur <zash@zash.se>2010-08-16 18:51:22 +0200
commite535c73ca3478ed3ec69d0edd5fd21d025e28792 (patch)
treef02f692762444dc494d1fd2886ba388093d9e48b /plugins/mod_auth_internal_hashed.lua
parent246e69fb578065e3b6129fd860cf9405596f753f (diff)
downloadprosody-e535c73ca3478ed3ec69d0edd5fd21d025e28792.tar.gz
prosody-e535c73ca3478ed3ec69d0edd5fd21d025e28792.zip
mod_auth_internal_hashed: Fix deleting users
Diffstat (limited to 'plugins/mod_auth_internal_hashed.lua')
-rw-r--r--plugins/mod_auth_internal_hashed.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua
index 2bee141c..300bebf8 100644
--- a/plugins/mod_auth_internal_hashed.lua
+++ b/plugins/mod_auth_internal_hashed.lua
@@ -125,6 +125,9 @@ function new_hashpass_provider(host)
end
function provider.create_user(username, password)
+ if password == nil then
+ return datamanager.store(username, host, "accounts", {});
+ end
local salt = generate_uuid();
local valid, stored_key, server_key = getAuthenticationDatabaseSHA1(password, salt, iteration_count);
local stored_key_hex = to_hex(stored_key);