Software /
code /
prosody
Changeset
5229:5566236f363f
mod_auth_anonymous: Implement user iteration API
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 09 Dec 2012 12:19:08 +0100 |
parents | 5228:edabb34417b7 |
children | 5230:6f5640375358 |
files | plugins/mod_auth_anonymous.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_auth_anonymous.lua Sun Dec 09 11:50:09 2012 +0100 +++ b/plugins/mod_auth_anonymous.lua Sun Dec 09 12:19:08 2012 +0100 @@ -41,6 +41,10 @@ return new_sasl(module.host, anonymous_authentication_profile); end +function provider.users() + return next, hosts[host].sessions, nil; +end + -- datamanager callback to disable writes local function dm_callback(username, host, datastore, data) if host == module.host then