Software /
code /
prosody
Comparison
plugins/mod_auth_anonymous.lua @ 6023:93b4058e3320
mod_auth_anonymous: Fixed a traceback in listing all users (issue#396).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 17 Feb 2014 16:00:41 -0500 |
parent | 5370:7838acadb0fa |
child | 8053:7d26dab7ce0d |
comparison
equal
deleted
inserted
replaced
6016:eb05360e8525 | 6023:93b4058e3320 |
---|---|
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 |