# HG changeset patch # User Kim Alvefur # Date 1348241185 -7200 # Node ID 0e1686f334b812bd3d2f7a537159d6d394155dd8 # Parent 6b08c922a2e4739ee0b33619c100392d80bf50eb usermanager: Add support for iterating over accounts diff -r 6b08c922a2e4 -r 0e1686f334b8 core/usermanager.lua --- a/core/usermanager.lua Fri Sep 21 17:26:12 2012 +0200 +++ b/core/usermanager.lua Fri Sep 21 17:26:25 2012 +0200 @@ -96,6 +96,10 @@ 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