Software /
code /
prosody
Diff
core/usermanager.lua @ 5157:0e1686f334b8
usermanager: Add support for iterating over accounts
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 21 Sep 2012 17:26:25 +0200 |
parent | 5129:e8253c931166 |
child | 5377:898454038524 |
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