aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_auth_internal_hashed.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-01-04 17:12:28 +0000
committerMatthew Wild <mwild1@gmail.com>2011-01-04 17:12:28 +0000
commit90562d1b6e7db93c5e2379959416809d98c89d4a (patch)
tree58bfceb709bca1c4c7d0facbf39e5386318ce27c /plugins/mod_auth_internal_hashed.lua
parentc8f795214ca472ba66fb5efdf262f15083274c1f (diff)
downloadprosody-90562d1b6e7db93c5e2379959416809d98c89d4a.tar.gz
prosody-90562d1b6e7db93c5e2379959416809d98c89d4a.zip
mod_auth_internal_*: Support for delete_user method
Diffstat (limited to 'plugins/mod_auth_internal_hashed.lua')
-rw-r--r--plugins/mod_auth_internal_hashed.lua4
1 files changed, 4 insertions, 0 deletions
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 = {