aboutsummaryrefslogtreecommitdiffstats
path: root/core
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
commitc8f795214ca472ba66fb5efdf262f15083274c1f (patch)
tree9d2024f5dd61dcb12f033272b8a1f518b467135d /core
parentf31871eb2e61b2ecc0555b4265d24e4bcd9d8f49 (diff)
downloadprosody-c8f795214ca472ba66fb5efdf262f15083274c1f.tar.gz
prosody-c8f795214ca472ba66fb5efdf262f15083274c1f.zip
usermanager: Add delete_user method
Diffstat (limited to 'core')
-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