Software /
code /
prosody
Comparison
core/usermanager.lua @ 3177:b932dde3bca5
usermanager: Rename the fallback provider from 'dummyauth' to 'null'
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 04 Jun 2010 13:54:15 +0100 |
parent | 3176:f77759710324 |
child | 3180:99be525bcfb4 |
comparison
equal
deleted
inserted
replaced
3176:f77759710324 | 3177:b932dde3bca5 |
---|---|
24 | 24 |
25 module "usermanager" | 25 module "usermanager" |
26 | 26 |
27 function new_null_provider() | 27 function new_null_provider() |
28 local function dummy() end; | 28 local function dummy() end; |
29 return setmetatable({name = "dummyauth"}, { __index = function() return dummy; end }); | 29 return setmetatable({name = "null"}, { __index = function() return dummy; end }); |
30 end | 30 end |
31 | 31 |
32 local function host_handler(host) | 32 local function host_handler(host) |
33 local host_session = hosts[host]; | 33 local host_session = hosts[host]; |
34 host_session.events.add_handler("item-added/auth-provider", function (event) | 34 host_session.events.add_handler("item-added/auth-provider", function (event) |