Software /
code /
prosody
Diff
plugins/mod_auth_anonymous.lua @ 5229:5566236f363f
mod_auth_anonymous: Implement user iteration API
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 09 Dec 2012 12:19:08 +0100 |
parent | 5117:2c7e1ce8f482 |
child | 5370:7838acadb0fa |
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