aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-09-21 17:26:25 +0200
committerKim Alvefur <zash@zash.se>2012-09-21 17:26:25 +0200
commitab915e9dd4c9083cb77650a5a498d1a04fbeccb5 (patch)
tree3cd63459a34a2110be5ac98b2c0f403f36c2f72a /core
parentce8ed6688196ab6b37e71fbef0da4faa9b4b2073 (diff)
downloadprosody-ab915e9dd4c9083cb77650a5a498d1a04fbeccb5.tar.gz
prosody-ab915e9dd4c9083cb77650a5a498d1a04fbeccb5.zip
usermanager: Add support for iterating over accounts
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 0ed61f23..417d7037 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -96,6 +96,10 @@ function delete_user(username, host)
return storagemanager.purge(username, host);
end
+function users(host)
+ return hosts[host].users.users();
+end
+
function get_sasl_handler(host, session)
return hosts[host].users.get_sasl_handler(session);
end