Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
5228:edabb34417b7 | 5229:5566236f363f |
---|---|
39 end | 39 end |
40 }; | 40 }; |
41 return new_sasl(module.host, anonymous_authentication_profile); | 41 return new_sasl(module.host, anonymous_authentication_profile); |
42 end | 42 end |
43 | 43 |
44 function provider.users() | |
45 return next, hosts[host].sessions, nil; | |
46 end | |
47 | |
44 -- datamanager callback to disable writes | 48 -- datamanager callback to disable writes |
45 local function dm_callback(username, host, datastore, data) | 49 local function dm_callback(username, host, datastore, data) |
46 if host == module.host then | 50 if host == module.host then |
47 return false; | 51 return false; |
48 end | 52 end |