net.http.server: Properly handle persistent connections
[prosody.git] / plugins / mod_auth_anonymous.lua
index c27057be2fb01e89f44d0cdf1fba5ffc9f69e3f7..a327f43816d12e356bd8e16df52ad4bde3daa931 100644 (file)
@@ -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