aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-01-04 17:11:51 +0000
committerMatthew Wild <mwild1@gmail.com>2011-01-04 17:11:51 +0000
commit8854a71059c31bb0cc39d5945525735f5cf39694 (patch)
tree17f9b35d82a5aac8cc0f92d7a51178c3f91fcd74
parente25a697b1ad152fa1fcae01b6872a19b6a31b9f0 (diff)
downloadprosody-8854a71059c31bb0cc39d5945525735f5cf39694.tar.gz
prosody-8854a71059c31bb0cc39d5945525735f5cf39694.zip
usermanager: Add delete_user method
-rw-r--r--core/usermanager.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index d4a00244..5e2e41fc 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -83,6 +83,10 @@ function create_user(username, password, host)
return hosts[host].users.create_user(username, password);
end
+function delete_user(username, host)
+ return hosts[host].users.delete_user(username);
+end
+
function get_sasl_handler(host)
return hosts[host].users.get_sasl_handler();
end