aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_auth_anonymous.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-12-09 12:39:49 +0100
committerKim Alvefur <zash@zash.se>2012-12-09 12:39:49 +0100
commit35cb12c554d8b5ee7134a0e15556e91a81a093b4 (patch)
tree03956a8a9247babc607ab26b998b387ff6caf3cd /plugins/mod_auth_anonymous.lua
parent25f5253ac069dccbc28d4495fc493b5667f3607b (diff)
parent329ee389c5fdea1e5cab9385accf7fd5fe80c7dc (diff)
downloadprosody-35cb12c554d8b5ee7134a0e15556e91a81a093b4.tar.gz
prosody-35cb12c554d8b5ee7134a0e15556e91a81a093b4.zip
Merge 0.9->trunk
Diffstat (limited to 'plugins/mod_auth_anonymous.lua')
-rw-r--r--plugins/mod_auth_anonymous.lua4
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