plugins/mod_auth_internal_hashed.lua

changeset 3454
8cf30367aa4f
parent 3395
e736f68c1047
child 3981
2b0b8fe68df2
--- 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);

mercurial