plugins/mod_auth_internal_hashed.lua
changeset 3994 42899d5efe3b
parent 3981 2b0b8fe68df2
child 4160 f08f649b898b
--- a/plugins/mod_auth_internal_hashed.lua	Tue Jan 04 17:11:51 2011 +0000
+++ b/plugins/mod_auth_internal_hashed.lua	Tue Jan 04 17:12:28 2011 +0000
@@ -135,6 +135,10 @@
 		return datamanager.store(username, host, "accounts", {stored_key = stored_key_hex, server_key = server_key_hex, salt = salt, iteration_count = iteration_count});
 	end
 
+	function provider.delete_user(username)
+		return datamanager.store(username, host, "accounts", nil);
+	end
+
 	function provider.get_sasl_handler()
 		local realm = module:get_option("sasl_realm") or module.host;
 		local testpass_authentication_profile = {