From 88af2ea6e9728680b5f0216143246d8486952b91 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 4 Oct 2008 15:25:54 +0100 Subject: Session destruction fixes, some debugging code while we fix the rest. Also change logger to be more useful. --- core/usermanager.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/usermanager.lua') 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; -- cgit v1.2.3