diff options
author | Kim Alvefur <zash@zash.se> | 2010-08-16 18:51:22 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2010-08-16 18:51:22 +0200 |
commit | e535c73ca3478ed3ec69d0edd5fd21d025e28792 (patch) | |
tree | f02f692762444dc494d1fd2886ba388093d9e48b /plugins | |
parent | 246e69fb578065e3b6129fd860cf9405596f753f (diff) | |
download | prosody-e535c73ca3478ed3ec69d0edd5fd21d025e28792.tar.gz prosody-e535c73ca3478ed3ec69d0edd5fd21d025e28792.zip |
mod_auth_internal_hashed: Fix deleting users
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_auth_internal_hashed.lua | 3 |
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); |