aboutsummaryrefslogtreecommitdiffstats
path: root/core/usermanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-10-04 15:25:54 +0100
committerMatthew Wild <mwild1@gmail.com>2008-10-04 15:25:54 +0100
commit88af2ea6e9728680b5f0216143246d8486952b91 (patch)
tree713c6073186469d4a775336f9a20c604a2c88879 /core/usermanager.lua
parent762a906e3654c3179c025a2886e9b7f4821f8666 (diff)
downloadprosody-88af2ea6e9728680b5f0216143246d8486952b91.tar.gz
prosody-88af2ea6e9728680b5f0216143246d8486952b91.zip
Session destruction fixes, some debugging code while we fix the rest. Also change logger to be more useful.
Diffstat (limited to 'core/usermanager.lua')
-rw-r--r--core/usermanager.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index a67ad368..0f303b24 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -1,10 +1,12 @@
require "util.datamanager"
local datamanager = datamanager;
+local log = require "util.logger".init("usermanager");
module "usermanager"
function validate_credentials(host, username, password)
+ log("debug", "User '%s' is being validated", username);
local credentials = datamanager.load(username, host, "accounts") or {};
if password == credentials.password then return true; end
return false;