tools/ejabberd2prosody: Disable generating a config, as the format it generates is...
[prosody.git] / plugins / mod_auth_anonymous.lua
index c27057be2fb01e89f44d0cdf1fba5ffc9f69e3f7..c877d532f69e30ee8176c5f5ab17f7e2020aab34 100644 (file)
@@ -8,6 +8,7 @@
 
 local new_sasl = require "util.sasl".new;
 local datamanager = require "util.datamanager";
+local hosts = prosody.hosts;
 
 -- define auth provider
 local provider = {};
@@ -41,6 +42,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