aboutsummaryrefslogtreecommitdiffstats
path: root/core/usermanager.lua
diff options
context:
space:
mode:
authorJeff Mitchell <jeff@jefferai.org>2010-05-27 10:54:11 -0400
committerJeff Mitchell <jeff@jefferai.org>2010-05-27 10:54:11 -0400
commitb9196dd592b734c54b1282c04d3f6825f6bf4c53 (patch)
treed3334c9ec506907b4ecb5e76f903f7998b411a2e /core/usermanager.lua
parent534d1b91a46511fe3ad5c98c9a1d0766af74f770 (diff)
downloadprosody-b9196dd592b734c54b1282c04d3f6825f6bf4c53.tar.gz
prosody-b9196dd592b734c54b1282c04d3f6825f6bf4c53.zip
Add mechanism for upgrading to hashed passwords from default. Remove some extra debug.
Diffstat (limited to 'core/usermanager.lua')
-rw-r--r--core/usermanager.lua13
1 files changed, 1 insertions, 12 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index 0920eb62..ccbf5fb5 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -30,27 +30,16 @@ function new_null_provider()
end
local function host_handler(host)
- log("debug", "host_handler called with host '%s'", host);
local host_session = hosts[host];
host_session.events.add_handler("item-added/auth-provider", function (event)
local provider = event.item;
- if provider == nil then
- log("debug", "auth provider is nil");
- else
- log("debug", "auth provider is not nil");
- end
- if provider.name == nil then
- log("debug", "authentication provider name is nil");
- else
- log("debug", "authentication provider name = '%s'", provider.name);
- end
if config.get(host, "core", "authentication") == nil and provider.name == "default" then
host_session.users = provider;
elseif config.get(host, "core", "authentication") == provider.name then
host_session.users = provider;
end
if host_session.users ~= nil and host_session.users.name ~= nil then
- log("debug", "host_session.users.name for host '%s' now '%s'", host, host_session.users.name);
+ log("debug", "host '%s' now set to use user provider '%s'", host, host_session.users.name);
end
end);
host_session.events.add_handler("item-removed/auth-provider", function (event)