From 2e28b24183d37ce48a61e6f1845f1eac8414e992 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 4 Jan 2011 17:12:28 +0000 Subject: mod_auth_internal_*: Support for delete_user method --- plugins/mod_auth_internal_hashed.lua | 4 ++++ 1 file changed, 4 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 ec8da9ab..3ce8c076 100644 --- a/plugins/mod_auth_internal_hashed.lua +++ b/plugins/mod_auth_internal_hashed.lua @@ -135,6 +135,10 @@ function new_hashpass_provider(host) 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 = { -- cgit v1.2.3