Changeset

5157:0e1686f334b8

usermanager: Add support for iterating over accounts
author Kim Alvefur <zash@zash.se>
date Fri, 21 Sep 2012 17:26:25 +0200
parents 5156:6b08c922a2e4
children 5158:c363e7e77f79
files core/usermanager.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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