diff options
author | Kim Alvefur <zash@zash.se> | 2012-12-09 12:19:08 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-12-09 12:19:08 +0100 |
commit | fbbd1b1c674b650f3b82997de85a3707d12d7d1d (patch) | |
tree | 93541c1743d1bd3060ca3341946ce4bddac9ec81 /plugins/mod_auth_anonymous.lua | |
parent | 233b38c3b0175eddbefb12ca5f485fea3189fe2a (diff) | |
download | prosody-fbbd1b1c674b650f3b82997de85a3707d12d7d1d.tar.gz prosody-fbbd1b1c674b650f3b82997de85a3707d12d7d1d.zip |
mod_auth_anonymous: Implement user iteration API
Diffstat (limited to 'plugins/mod_auth_anonymous.lua')
-rw-r--r-- | plugins/mod_auth_anonymous.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_auth_anonymous.lua b/plugins/mod_auth_anonymous.lua index c27057be..a327f438 100644 --- a/plugins/mod_auth_anonymous.lua +++ b/plugins/mod_auth_anonymous.lua @@ -41,6 +41,10 @@ function provider.get_sasl_handler() 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 |