Mercurial > prosody-hg
comparison plugins/mod_auth_anonymous.lua @ 6027:8c69cea8a1bf
Merge 0.9->0.10
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 26 Feb 2014 22:21:55 +0100 |
| parents | 93b4058e3320 |
| children | 7d26dab7ce0d |
comparison
equal
deleted
inserted
replaced
| 6021:f8c17af769d9 | 6027:8c69cea8a1bf |
|---|---|
| 41 }; | 41 }; |
| 42 return new_sasl(module.host, anonymous_authentication_profile); | 42 return new_sasl(module.host, anonymous_authentication_profile); |
| 43 end | 43 end |
| 44 | 44 |
| 45 function provider.users() | 45 function provider.users() |
| 46 return next, hosts[host].sessions, nil; | 46 return next, hosts[module.host].sessions, nil; |
| 47 end | 47 end |
| 48 | 48 |
| 49 -- datamanager callback to disable writes | 49 -- datamanager callback to disable writes |
| 50 local function dm_callback(username, host, datastore, data) | 50 local function dm_callback(username, host, datastore, data) |
| 51 if host == module.host then | 51 if host == module.host then |
