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
commitd83b39cc4c9da3b21a1d2135eb7bd51e6f2dc242 (patch)
tree721b4a22ef701c1548abcf7e805ab98154a35800 /core
parent300438b5c70711500c4a3cc00d27d6563f729519 (diff)
downloadprosody-d83b39cc4c9da3b21a1d2135eb7bd51e6f2dc242.tar.gz
prosody-d83b39cc4c9da3b21a1d2135eb7bd51e6f2dc242.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)