From e535c73ca3478ed3ec69d0edd5fd21d025e28792 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 16 Aug 2010 18:51:22 +0200 Subject: mod_auth_internal_hashed: Fix deleting users --- plugins/mod_auth_internal_hashed.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/mod_auth_internal_hashed.lua') 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); -- cgit v1.2.3