Changeset

3454:8cf30367aa4f

mod_auth_internal_hashed: Fix deleting users
author Kim Alvefur <zash@zash.se>
date Mon, 16 Aug 2010 18:51:22 +0200
parents 3453:fba130c16818
children 3455:67cdc0366d46
files plugins/mod_auth_internal_hashed.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_auth_internal_hashed.lua	Thu Aug 12 20:44:01 2010 +0200
+++ b/plugins/mod_auth_internal_hashed.lua	Mon Aug 16 18:51:22 2010 +0200
@@ -125,6 +125,9 @@
 	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);