aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-01-04 17:10:56 +0000
committerMatthew Wild <mwild1@gmail.com>2011-01-04 17:10:56 +0000
commit73752efbfdb1411bd6137cca65baeb35ed0eb08d (patch)
tree3d2f9f1063bd186776cb9cbdb3e282f268a4e707 /core
parent00524419cb1c35e6df4c16c6eec81cbabf6ccc96 (diff)
downloadprosody-73752efbfdb1411bd6137cca65baeb35ed0eb08d.tar.gz
prosody-73752efbfdb1411bd6137cca65baeb35ed0eb08d.zip
usermanager: Change dummy provider method to return an error string also (method not implemented)
Diffstat (limited to 'core')
-rw-r--r--core/usermanager.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index 2e64af8c..2b060cc0 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -24,9 +24,11 @@ local default_provider = "internal_plain";
module "usermanager"
function new_null_provider()
- local function dummy() end;
+ local function dummy() return nil, "method not implemented"; end;
local function dummy_get_sasl_handler() return sasl_new(nil, {}); end
- return setmetatable({name = "null", get_sasl_handler = dummy_get_sasl_handler}, { __index = function() return dummy; end });
+ return setmetatable({name = "null", get_sasl_handler = dummy_get_sasl_handler}, {
+ __index = function(self, method) return dummy; end
+ });
end
function initialize_host(host)