From 0c97ffd2a38b6cd459ff44c2f87f40b532fd3818 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 21 Sep 2012 17:26:25 +0200 Subject: usermanager: Add support for iterating over accounts --- core/usermanager.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core') 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 -- cgit v1.2.3