aboutsummaryrefslogtreecommitdiffstats
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
commit0c97ffd2a38b6cd459ff44c2f87f40b532fd3818 (patch)
tree3cd63459a34a2110be5ac98b2c0f403f36c2f72a
parent05717a42cfadefb86cb8958b78e5102a3a09f27d (diff)
downloadprosody-0c97ffd2a38b6cd459ff44c2f87f40b532fd3818.tar.gz
prosody-0c97ffd2a38b6cd459ff44c2f87f40b532fd3818.zip
usermanager: Add support for iterating over accounts
-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