# HG changeset patch # User Matthew Wild # Date 1294161148 0 # Node ID 42899d5efe3bf4403821ee9791ccf0fabb6229cd # Parent b71e5ecc694b516307c292be6b063d6155ed0704 mod_auth_internal_*: Support for delete_user method diff -r b71e5ecc694b -r 42899d5efe3b plugins/mod_auth_internal_hashed.lua --- 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 = { diff -r b71e5ecc694b -r 42899d5efe3b plugins/mod_auth_internal_plain.lua --- a/plugins/mod_auth_internal_plain.lua Tue Jan 04 17:11:51 2011 +0000 +++ b/plugins/mod_auth_internal_plain.lua Tue Jan 04 17:12:28 2011 +0000 @@ -62,6 +62,10 @@ function provider.create_user(username, password) return datamanager.store(username, host, "accounts", {password = password}); 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;